forked from 0ad/0ad
prevent error when switching perspective to gaia
This was SVN commit r16145.
This commit is contained in:
parent
e916c7e91f
commit
528ed2d15e
@ -648,7 +648,10 @@ GuiInterface.prototype.GetStartedResearch = function(player)
|
|||||||
GuiInterface.prototype.GetBattleState = function(player)
|
GuiInterface.prototype.GetBattleState = function(player)
|
||||||
{
|
{
|
||||||
var cmpBattleDetection = QueryPlayerIDInterface(player, IID_BattleDetection);
|
var cmpBattleDetection = QueryPlayerIDInterface(player, IID_BattleDetection);
|
||||||
|
if (cmpBattleDetection)
|
||||||
return cmpBattleDetection.GetState();
|
return cmpBattleDetection.GetState();
|
||||||
|
else
|
||||||
|
return false;
|
||||||
};
|
};
|
||||||
|
|
||||||
// Returns a list of ongoing attacks against the player.
|
// Returns a list of ongoing attacks against the player.
|
||||||
|
Loading…
Reference in New Issue
Block a user