Skip to content

Commit 0f955bf

Browse files
committedApr 15, 2017
Minimap: Do a double-typecast to fix compiling with MSVC
1 parent a9aad4d commit 0f955bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/script/lua_api/l_minimap.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ int LuaMinimap::l_set_shape(lua_State *L)
115115
if (!lua_isnumber(L, 2))
116116
return 0;
117117

118-
m->setMinimapShape((MinimapShape)lua_tonumber(L, 2));
118+
m->setMinimapShape((MinimapShape)((int)lua_tonumber(L, 2)));
119119
return 0;
120120
}
121121

0 commit comments

Comments
 (0)
Please sign in to comment.