Forward port a fix from 2.3 for bad visibility data when changing missions

that closes ticket:1546 and closes ticket:1524


git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9809 4a71c877-e1ca-e34f-864e-861f7616d084
master
Per Inge Mathisen 2010-02-14 20:48:45 +00:00 committed by Git SVN Gateway
parent 823cf96eeb
commit 018b64662c
1 changed files with 5 additions and 0 deletions

View File

@ -655,6 +655,11 @@ void missionFlyTransportersIn( SDWORD iPlayer, BOOL bTrackTransporter )
// Check that this transporter actually contains some droids
if (psTransporter->psGroup && psTransporter->psGroup->refCount > 1)
{
// Remove map information from previous map
free(psTransporter->watchedTiles);
psTransporter->watchedTiles = NULL;
psTransporter->numWatchedTiles = 0;
// Remove out of stored list and add to current Droid list
if (droidRemove(psTransporter, mission.apsDroidLists))
{