Fixed compilation of non debug version

This commit is contained in:
Pali Rohár 2012-05-20 15:11:02 +02:00
parent 198686dfd6
commit 8b3e5c8d45

View file

@ -666,7 +666,11 @@ void ShowOrder(const CUnit &unit)
if (unit.Destroyed) {
return;
}
if (!DEBUG && unit.Player != ThisPlayer && !ThisPlayer->IsAllied(unit)) {
if (!ThisPlayer->IsAllied(unit)
#ifndef DEBUG
&& unit.Player != ThisPlayer
#endif
) {
return;
}
// Get current position