Skip to content

Commit

Permalink
[Custom-Train-Tracks] Small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sebasdevelopment@gmx.com committed Jul 10, 2013
1 parent e2c5fcb commit 7624868
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MTA10_Server/mods/deathmatch/logic/CMapManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -288,10 +288,10 @@ void CMapManager::SendMapInformation ( CPlayer& Player )

// Add the water polys to the packet
CTrainTrackManager* pTrainTrackManager = g_pGame->GetTrainTrackManager ();
for ( unsigned int i = 0; i < MAX_TOTAL_TRACKS; i++ )
for ( unsigned int i = NUM_RAILTRACKS; i < MAX_TOTAL_TRACKS; i++ )
{
CTrainTrack* pTrack = pTrainTrackManager->GetTrainTrack ( i );
if ( pTrack && pTrack->GetTrackID ( ) >= NUM_RAILTRACKS )
if ( pTrack )
{
EntityPacket.Add ( pTrack );
}
Expand Down

0 comments on commit 7624868

Please sign in to comment.