Browse Source

Hackfix for ghost stack draw.

AlexVinS 9 years ago
parent
commit
ace52cfdb1
1 changed files with 2 additions and 1 deletions
  1. 2 1
      client/battle/CBattleInterface.cpp

+ 2 - 1
client/battle/CBattleInterface.cpp

@@ -3435,7 +3435,8 @@ BattleObjectsByHex CBattleInterface::sortObjectsByHex()
 					sorted.hex[getCurrentPosition(stack)].alive.push_back(stack);
 			}
 		}
-		else
+		//FIXME: hack to ignore ghost stacks
+		else if(!(creAnims[stack->ID]->getType() == CCreatureAnim::DEAD && stack->isGhost()))
 			sorted.hex[stack->position].dead.push_back(stack);
 	}