Some cleanups. (might break build for scripts as they are a WIP)

This commit is contained in:
hondacrx
2023-10-08 10:35:31 -04:00
parent fa10b981bd
commit cda53c8e7f
208 changed files with 2266 additions and 2329 deletions
+3 -3
View File
@@ -26,11 +26,11 @@ namespace Game.Garrisons
public Garrison GetGarrison()
{
if (_loadingPlayer)
if (_loadingPlayer != null)
return _loadingPlayer.GetGarrison();
Player owner = Global.ObjAccessor.FindConnectedPlayer(_owner);
if (owner)
if (owner != null)
return owner.GetGarrison();
return null;
@@ -105,7 +105,7 @@ namespace Game.Garrisons
continue;
GameObject go = plot.CreateGameObject(i_map, i_garrison.GetFaction());
if (!go)
if (go == null)
continue;
var cell = new Cell(cellCoord);