From 836b7c95f1528183fd90c5493d638d708c1a2adc Mon Sep 17 00:00:00 2001 From: wushin Date: Wed, 9 Mar 2016 21:11:47 -0600 Subject: Fake a response on no BL --- src/map/script-fun.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/map/script-fun.cpp') 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(st->stack, conv_str(st, &AARG(1))); + else + push_int(st->stack, 0); return; } -- cgit v1.2.3-60-g2f50