From 7d01ae57c61c604ed6078bb3910283d9a8a6ffc7 Mon Sep 17 00:00:00 2001 From: Thorbjørn Lindeijer Date: Sat, 29 May 2010 18:36:20 +0200 Subject: Only skip the UTF-8 BOM for Lua scripts libxml2 should be able to handle files with a BOM fine. Reviewed-by: Bertram --- src/scripting/lua.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/scripting/lua.cpp') diff --git a/src/scripting/lua.cpp b/src/scripting/lua.cpp index da47d931..507b348f 100644 --- a/src/scripting/lua.cpp +++ b/src/scripting/lua.cpp @@ -1628,7 +1628,7 @@ LuaScript::LuaScript(): lua_pop(mState, 2); // Put some callback functions in the scripting environment. - static luaL_reg const callbacks[] = { + static luaL_Reg const callbacks[] = { { "npc_create", &npc_create }, { "npc_message", &npc_message }, { "npc_choice", &npc_choice }, -- cgit v1.2.3-70-g09d2