CclGetNumUnitsAt now gets units only if they are alive

This commit is contained in:
Andrettin 2015-11-21 23:20:45 +01:00
parent 2139f049d9
commit b34799e07c

View file

@ -186,7 +186,9 @@ static int CclGetNumUnitsAt(lua_State *l)
// Check the player
if (plynr == -1 || plynr == unit.Player->Index) {
++s;
if (unit.IsAlive()) {
++s;
}
}
}
}