summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwushin <pasekei@gmail.com>2016-03-09 21:11:47 -0600
committermekolat <mekolat@users.noreply.github.com>2016-04-15 11:47:14 -0400
commit836b7c95f1528183fd90c5493d638d708c1a2adc (patch)
tree8cf65563f9d47d84c76f7579f0e43a83b17a5422
parentf4183108c70a51217edf07a63e843f1a5d2c1747 (diff)
downloadtmwa-836b7c95f1528183fd90c5493d638d708c1a2adc.tar.gz
tmwa-836b7c95f1528183fd90c5493d638d708c1a2adc.tar.bz2
tmwa-836b7c95f1528183fd90c5493d638d708c1a2adc.tar.xz
tmwa-836b7c95f1528183fd90c5493d638d708c1a2adc.zip
Fake a response on no BL
-rw-r--r--src/map/script-fun.cpp6
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;
}