fix an MSVC warning about converting from lua_number to int
(possible data loss)
This commit is contained in:
parent
bbb76c8638
commit
b3bb32c01e
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue