diff options
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/script-fun.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/map/script-fun.cpp b/src/map/script-fun.cpp index 9050189..b3e4f96 100644 --- a/src/map/script-fun.cpp +++ b/src/map/script-fun.cpp @@ -3589,7 +3589,11 @@ void builtin_get(ScriptState *st) if (!bl) { - PRINTF("builtin_get: no block list attached !\n"_fmt); + PRINTF("builtin_get: no block list attached %s!\n"_fmt, conv_str(st, &AARG(1))); + if (postfix == '$') + push_str<ScriptDataStr>(st->stack, conv_str(st, &AARG(1))); + else + push_int<ScriptDataInt>(st->stack, 0); return; } |