Clean up nearby destinations cached info if the WITCHSPACE UNAVAILABLE message is sent to the AI.
git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@1667 127b21dd-08f5-0310-b4b7-95ae10353056
This commit is contained in:
parent
451297e529
commit
759da63a60
@ -1898,6 +1898,12 @@ WormholeEntity* whole;
|
|||||||
if (!n_dests)
|
if (!n_dests)
|
||||||
{
|
{
|
||||||
[shipAI reactToMessage:@"WITCHSPACE UNAVAILABLE"];
|
[shipAI reactToMessage:@"WITCHSPACE UNAVAILABLE"];
|
||||||
|
|
||||||
|
// If no systems exist near us, the AI is switched to a different state, so we do not need
|
||||||
|
// the nearby destinations array anymore.
|
||||||
|
[sDests release];
|
||||||
|
sDests = nil;
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user