fix an MSVC warning about converting from lua_number to int

(possible data loss)
This commit is contained in:
Anonymissimus 2011-08-07 14:51:20 +00:00
parent bbb76c8638
commit b3bb32c01e

View file

@ -180,7 +180,7 @@ inline boost::shared_ptr<std::vector<target> > lua_object< std::vector<target> >
lua_pushstring(L, "value");
lua_rawget(L, -2);
int value = lua_tonumber(L, -1);
int value = lua_tointeger(L, -1);
map_location ml(x - 1, y - 1);