Commit e15beaab authored by mercury233's avatar mercury233

fix Debug.Message crash on no param

parent a028856e
......@@ -14,6 +14,7 @@
#include "ocgapi.h"
int32_t scriptlib::debug_message(lua_State *L) {
check_param_count(L, 1);
duel* pduel = interpreter::get_duel_info(L);
lua_getglobal(L, "tostring");
lua_pushvalue(L, -2);
......
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