97df89bdb5
from James Prevatt <jprevatt+bsd at paunix.org> ok sturm
13 lines
469 B
Plaintext
13 lines
469 B
Plaintext
$OpenBSD: patch-src_scripting_lua_hooks_c,v 1.1 2006/10/21 17:56:48 jasper Exp $
|
|
--- src/scripting/lua/hooks.c.orig Thu Oct 19 12:54:09 2006
|
|
+++ src/scripting/lua/hooks.c Thu Oct 19 12:54:25 2006
|
|
@@ -200,7 +200,7 @@ static enum evhook_status
|
|
script_hook_quit(va_list ap, void *data)
|
|
{
|
|
if (!prepare_lua(NULL)) {
|
|
- lua_dostring(lua_state, "if quit_hook then quit_hook() end");
|
|
+ luaL_dostring(lua_state, "if quit_hook then quit_hook() end");
|
|
finish_lua();
|
|
}
|
|
|