Fixed compat lua_load() with lua 5.2.x

This commit is contained in:
Breno Silva 2012-12-27 11:48:59 -04:00
parent 21b8770484
commit 973bfae335

View File

@ -79,7 +79,11 @@ static int lua_restore(lua_State *L, msc_script *script) {
dumpr.script = script;
dumpr.index = 0;
#if LUA_VERSION_NUM > 501
return lua_load(L, dump_reader, &dumpr, script->name, NULL);
#else
return lua_load(L, dump_reader, &dumpr, script->name);
#endif
}
/**