diff --git a/source/core/mapinfo.h b/source/core/mapinfo.h index 42b611995..81a72c40c 100644 --- a/source/core/mapinfo.h +++ b/source/core/mapinfo.h @@ -99,12 +99,12 @@ constexpr inline int levelnum(int vol, int map) constexpr inline int volfromlevelnum(int num) { - return num > 0 ? num / 1000 : 0; + return num >= 0 ? num / 1000 : 0; } constexpr inline int mapfromlevelnum(int num) { - return num > 0 ? num % 1000 : -1; + return num >= 0 ? num % 1000 : -1; }