summaryrefslogtreecommitdiff
path: root/src/map/map.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2015-12-06 15:18:01 +0100
committerHaru <haru@dotalux.com>2015-12-06 15:19:00 +0100
commitd7d6e7214cc1af22dab0b28fdde218ea7d37f05f (patch)
tree67cb2529c39c8a8ad2d062b8a1092fc70ba60b09 /src/map/map.c
parent10e512506d82f5dfd2a1b1d99304d338e03c4803 (diff)
downloadhercules-d7d6e7214cc1af22dab0b28fdde218ea7d37f05f.tar.gz
hercules-d7d6e7214cc1af22dab0b28fdde218ea7d37f05f.tar.bz2
hercules-d7d6e7214cc1af22dab0b28fdde218ea7d37f05f.tar.xz
hercules-d7d6e7214cc1af22dab0b28fdde218ea7d37f05f.zip
Added backtrace in case an invalid race is passed to map_race_id2mask
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/map.c')
-rw-r--r--src/map/map.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/map.c b/src/map/map.c
index 7a0dde260..e1bf5232a 100644
--- a/src/map/map.c
+++ b/src/map/map.c
@@ -2068,6 +2068,8 @@ uint32 map_race_id2mask(int race)
return RCMASK_NONDEMIPLAYER;
ShowWarning("map_race_id2mask: Invalid race: %d\n", race);
+ Assert_report((race >= RC_FORMLESS && race < RC_NONDEMIPLAYER) || race == RC_ALL);
+
return RCMASK_NONE;
}