Commit f146e9ae authored by Tianchenglipu's avatar Tianchenglipu Committed by GitHub

Update interpreter.cpp

parent 696ec1e7
......@@ -673,10 +673,13 @@ int32 interpreter::load_card_script(uint32 code) {
lua_pushvalue(current_state, -2);
lua_rawset(current_state, -3);
//load extra scripts
sprintf(script_name, "./script/c%d.lua", code);
sprintf(script_name, "./expansions/script/c%d.lua", code);
if (!load_script(script_name)) {
return OPERATION_FAIL;
}
sprintf(script_name, "./script/c%d.lua", code);
if (!load_script(script_name)) {
return OPERATION_FAIL;
}
}
}
return OPERATION_SUCCESS;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment