summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-06-06 16:45:56 -0300
committerEuphy <euphy@rathena.org>2013-06-15 15:39:04 -0400
commit61ff15329be3636a6bb878a4039c76d9ad00b344 (patch)
tree8d48f4b06be843af93813ed3dac3cfa5836e4c33
parent8c7b9a0c4c09e73b8c71b7c3f480e8a6e963dbf2 (diff)
downloadhercules-61ff15329be3636a6bb878a4039c76d9ad00b344.tar.gz
hercules-61ff15329be3636a6bb878a4039c76d9ad00b344.tar.bz2
hercules-61ff15329be3636a6bb878a4039c76d9ad00b344.tar.xz
hercules-61ff15329be3636a6bb878a4039c76d9ad00b344.zip
Fixed Bug #7329
Special Thanks to Angelmelody, Xgear~! http://hercules.ws/board/tracker/issue-7329-server-crash-when-running-getmapxy/ Signed-off-by: shennetsind <ind@henn.et>
-rw-r--r--src/map/script.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 15b6fe788..4b9c350f2 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -12815,7 +12815,7 @@ BUILDIN(getmapxy)
script_pushint(st,-1);
return false;
}
- if (!bl) { //No object found.
+ if (!bl || bl->m == -1) { //No object found.
script_pushint(st,-1);
return true;
}