From 6ff1728e17198fdba40f5edbee833ed500bf9ebc Mon Sep 17 00:00:00 2001 From: shennetsind Date: Thu, 6 Jun 2013 16:45:56 -0300 Subject: Fixed Bug #7329 Special Thanks to Angelmelody, Xgear~! http://hercules.ws/board/tracker/issue-7329-server-crash-when-running-getmapxy/ Signed-off-by: shennetsind --- src/map/script.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3-70-g09d2