13 lines
435 B
Text
13 lines
435 B
Text
$NetBSD: patch-ac,v 1.1 2007/03/28 15:30:12 bsadewitz Exp $
|
|
|
|
--- src/scripting/lua/hooks.c.orig 2006-01-29 13:10:39.000000000 +0000
|
|
+++ src/scripting/lua/hooks.c
|
|
@@ -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();
|
|
}
|
|
|