diff options
author | shennetsind <ind@henn.et> | 2013-06-06 16:45:56 -0300 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-06-06 16:45:56 -0300 |
commit | 6ff1728e17198fdba40f5edbee833ed500bf9ebc (patch) | |
tree | 2ac3ab6807aa16a888035da3175951acfe107234 /src/map | |
parent | 7b9297cbaedad24cd6109394445ba46095e552ff (diff) | |
download | hercules-6ff1728e17198fdba40f5edbee833ed500bf9ebc.tar.gz hercules-6ff1728e17198fdba40f5edbee833ed500bf9ebc.tar.bz2 hercules-6ff1728e17198fdba40f5edbee833ed500bf9ebc.tar.xz hercules-6ff1728e17198fdba40f5edbee833ed500bf9ebc.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>
Diffstat (limited to 'src/map')
-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; } |