diff options
author | SmallJoker <mk939@ymail.com> | 2017-04-15 14:30:27 +0200 |
---|---|---|
committer | SmallJoker <mk939@ymail.com> | 2017-04-15 14:30:27 +0200 |
commit | 0f955bf7fa7a1376acdbc06a617c0f15f9fad467 (patch) | |
tree | 296dcc96cbb0868351de5d30ede6f3f6923e4fd0 /src/script | |
parent | a9aad4d0616e798a8e61ac2a30dc31efd53b8c65 (diff) | |
download | minetest-0f955bf7fa7a1376acdbc06a617c0f15f9fad467.tar.gz minetest-0f955bf7fa7a1376acdbc06a617c0f15f9fad467.tar.bz2 minetest-0f955bf7fa7a1376acdbc06a617c0f15f9fad467.zip |
Minimap: Do a double-typecast to fix compiling with MSVC
Diffstat (limited to 'src/script')
-rw-r--r-- | src/script/lua_api/l_minimap.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/lua_api/l_minimap.cpp b/src/script/lua_api/l_minimap.cpp index f32a07ce8..afb3766fb 100644 --- a/src/script/lua_api/l_minimap.cpp +++ b/src/script/lua_api/l_minimap.cpp @@ -115,7 +115,7 @@ int LuaMinimap::l_set_shape(lua_State *L) if (!lua_isnumber(L, 2)) return 0; - m->setMinimapShape((MinimapShape)lua_tonumber(L, 2)); + m->setMinimapShape((MinimapShape)((int)lua_tonumber(L, 2))); return 0; } |