mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-07-04 05:55:47 -07:00
prevent error when switching perspective to gaia
This was SVN commit r16145.
This commit is contained in:
parent
e916c7e91f
commit
528ed2d15e
1 changed files with 4 additions and 1 deletions
|
|
@ -648,7 +648,10 @@ GuiInterface.prototype.GetStartedResearch = function(player)
|
|||
GuiInterface.prototype.GetBattleState = function(player)
|
||||
{
|
||||
var cmpBattleDetection = QueryPlayerIDInterface(player, IID_BattleDetection);
|
||||
return cmpBattleDetection.GetState();
|
||||
if (cmpBattleDetection)
|
||||
return cmpBattleDetection.GetState();
|
||||
else
|
||||
return false;
|
||||
};
|
||||
|
||||
// Returns a list of ongoing attacks against the player.
|
||||
|
|
|
|||
Loading…
Reference in a new issue