summaryrefslogtreecommitdiff
path: root/src/game-server/map.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game-server/map.cpp')
-rw-r--r--src/game-server/map.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game-server/map.cpp b/src/game-server/map.cpp
index d48546a2..16368e91 100644
--- a/src/game-server/map.cpp
+++ b/src/game-server/map.cpp
@@ -157,8 +157,9 @@ void Map::freeTile(int x, int y, BlockType type)
return;
MetaTile &metaTile = mMetaTiles[x + y * mWidth];
+ assert(metaTile.occupation[type] > 0);
- if (metaTile.occupation[type] > 0 && !(--metaTile.occupation[type]))
+ if (!(--metaTile.occupation[type]))
{
switch (type)
{