diff options
author | shennetsind <ind@henn.et> | 2013-06-06 16:45:56 -0300 |
---|---|---|
committer | Euphy <euphy@rathena.org> | 2013-06-15 15:39:04 -0400 |
commit | 61ff15329be3636a6bb878a4039c76d9ad00b344 (patch) | |
tree | 8d48f4b06be843af93813ed3dac3cfa5836e4c33 | |
parent | 8c7b9a0c4c09e73b8c71b7c3f480e8a6e963dbf2 (diff) | |
download | hercules-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.c | 2 |
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; } |