summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-10-16 14:48:40 -0300
committershennetsind <ind@henn.et>2013-10-16 14:48:40 -0300
commit4a1332099ff348f88f3d2c05512a92d3bc6f9c25 (patch)
treec7f4627e95c4424070526ae1e62061c0fb827497 /src/map/script.c
parentf943c061b5c29bf906830c8ff9e9114f00a88951 (diff)
downloadhercules-4a1332099ff348f88f3d2c05512a92d3bc6f9c25.tar.gz
hercules-4a1332099ff348f88f3d2c05512a92d3bc6f9c25.tar.bz2
hercules-4a1332099ff348f88f3d2c05512a92d3bc6f9c25.tar.xz
hercules-4a1332099ff348f88f3d2c05512a92d3bc6f9c25.zip
Fixed Bug #7771
http://hercules.ws/board/tracker/issue-7771-compiling-errors/ Signed-off-by: shennetsind <ind@henn.et>
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 4f7823e95..c74eff07b 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -16962,7 +16962,10 @@ BUILDIN(montransform) {
val1 = val2 = val3 = val4 = 0;
if( mob_id == 0 ) {
- ShowWarning("buildin_montransform: Attempted to use non-existing monster '%s'.\n", script_isstring(st, 2) ? script_getstr(st, 2) : itoa(script_getnum(st, 2), msg, 10));
+ if( script_isstring(st,2) )
+ ShowWarning("buildin_montransform: Attempted to use non-existing monster '%s'.\n", script_getstr(st, 2));
+ else
+ ShowWarning("buildin_montransform: Attempted to use non-existing monster of ID '%d'.\n", script_getnum(st, 2));
return false;
}