Author: anonymissimus
Date: Sun Aug  7 16:51:20 2011
New Revision: 50640

URL: http://svn.gna.org/viewcvs/wesnoth?rev=50640&view=rev
Log:
fix an MSVC warning about converting from lua_number to int (possible data loss)

Modified:
    trunk/src/ai/lua/lua_object.hpp

Modified: trunk/src/ai/lua/lua_object.hpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/ai/lua/lua_object.hpp?rev=50640&r1=50639&r2=50640&view=diff
==============================================================================
--- trunk/src/ai/lua/lua_object.hpp (original)
+++ trunk/src/ai/lua/lua_object.hpp Sun Aug  7 16:51:20 2011
@@ -180,7 +180,7 @@
                
                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);
                


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to