Author: mordante
Date: Fri Oct 21 20:58:53 2011
New Revision: 51555

URL: http://svn.gna.org/viewcvs/wesnoth?rev=51555&view=rev
Log:
Remove an old-style-cast.

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=51555&r1=51554&r2=51555&view=diff
==============================================================================
--- trunk/src/ai/lua/lua_object.hpp (original)
+++ trunk/src/ai/lua/lua_object.hpp Fri Oct 21 20:58:53 2011
@@ -174,7 +174,7 @@
 
                lua_pushstring(L, "type"); // st n + 2
                lua_rawget(L, -2);  // st n + 2
-               target::TYPE type = (target::TYPE)lua_tointeger(L, -1);  // st 
n + 2
+               target::TYPE type = static_cast<target::TYPE>(lua_tointeger(L, 
-1));  // st n + 2
                lua_pop(L, 1); // st n + 1
 
 


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

Reply via email to