Fix possible crash in fpathBaseBlockingTile.

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7846 4a71c877-e1ca-e34f-864e-861f7616d084
master
Guangcong Luo 2009-07-14 08:33:57 +00:00 committed by Git SVN Gateway
parent 0a5b68c4a1
commit 1907b3aa73
1 changed files with 1 additions and 1 deletions

View File

@ -279,7 +279,7 @@ BOOL fpathBaseBlockingTile(SDWORD x, SDWORD y, PROPULSION_TYPE propulsion, int p
{
return true;
}
else if (moveType == FMT_ATTACK
else if (moveType == FMT_ATTACK && psTile->psObject
&& psTile->psObject->type == OBJ_STRUCTURE && aiCheckAlliances(psTile->psObject->player, player))
{
return true;