aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormegamage <none@none>2009-08-09 15:22:43 -0500
committermegamage <none@none>2009-08-09 15:22:43 -0500
commit677b7b9757f5c6ec7fc0103271c806805566b25a (patch)
treec8ffa4a3b4263fa5bf93081cb9987b229aeee87e /src
parente657f65f2bf3dd37103163d903daa933643b0ccc (diff)
*Add an assert in removeunitfromnotify
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/Map.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/game/Map.cpp b/src/game/Map.cpp
index 47925102892..2321e130301 100644
--- a/src/game/Map.cpp
+++ b/src/game/Map.cpp
@@ -657,6 +657,8 @@ void Map::RemoveUnitFromNotify(Unit *unit, int32 slot)
i_unitsToNotifyBacklog[slot] = NULL;
else if(slot < i_unitsToNotify.size() && i_unitsToNotify[slot] == unit)
i_unitsToNotify[slot] = NULL;
+ else
+ assert(false);
}
else
{