From 677b7b9757f5c6ec7fc0103271c806805566b25a Mon Sep 17 00:00:00 2001 From: megamage Date: Sun, 9 Aug 2009 15:22:43 -0500 Subject: *Add an assert in removeunitfromnotify --HG-- branch : trunk --- src/game/Map.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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 { -- cgit v1.2.3