ソースを参照

Silence "X doesn't have a base stack!" warning

AlexVinS 9 年 前
コミット
6d13c8938c
1 ファイル変更2 行追加0 行削除
  1. 2 0
      lib/BattleState.h

+ 2 - 0
lib/BattleState.h

@@ -271,6 +271,8 @@ public:
 				assert (hero);
 				base = hero->commander;
 			}
+			else if(slot == SlotID::WAR_MACHINES_SLOT || slot == SlotID::ARROW_TOWERS_SLOT)
+				base = nullptr;
 			else if(!army || slot == SlotID() || !army->hasStackAtSlot(slot))
 			{
 				base = nullptr;