summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 9c89943c8..5aeb91c0e 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -11647,7 +11647,10 @@ BUILDIN_FUNC(strmobinfo)
if(!mobdb_checkid(class_))
{
- script_pushint(st,0);
+ if (num < 3) //requested a string
+ script_pushconststr(st,"");
+ else
+ script_pushint(st,0);
return 0;
}