Author: mordante
Date: Fri May 1 17:10:44 2009
New Revision: 35376
URL: http://svn.gna.org/viewcvs/wesnoth?rev=35376&view=rev
Log:
Initialize all members.
Modified:
trunk/src/scripting/lua.cpp
Modified: trunk/src/scripting/lua.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/scripting/lua.cpp?rev=35376&r1=35375&r2=35376&view=diff
==============================================================================
--- trunk/src/scripting/lua.cpp (original)
+++ trunk/src/scripting/lua.cpp Fri May 1 17:10:44 2009
@@ -737,8 +737,8 @@
}
LuaKernel::LuaKernel()
-{
- mState = luaL_newstate();
+ : mState(luaL_newstate())
+{
lua_State *L = mState;
// Open safe libraries. (Debug is not, but it will be closed below.)
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits