Fix possible crash in fpathBaseBlockingTile.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@7846 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
0a5b68c4a1
commit
1907b3aa73
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue