diff options
author | panikon <panikon@zoho.com> | 2014-02-19 22:27:18 -0300 |
---|---|---|
committer | panikon <panikon@zoho.com> | 2014-02-19 22:27:18 -0300 |
commit | 584d4aa061b648a8686e453c7019c0c7664f5ff6 (patch) | |
tree | 0c1141db569394844bfa948580a5948f586441fa /src/map | |
parent | d6cd24a757c7254914ef048f71aa7e9d4f493fda (diff) | |
download | hercules-584d4aa061b648a8686e453c7019c0c7664f5ff6.tar.gz hercules-584d4aa061b648a8686e453c7019c0c7664f5ff6.tar.bz2 hercules-584d4aa061b648a8686e453c7019c0c7664f5ff6.tar.xz hercules-584d4aa061b648a8686e453c7019c0c7664f5ff6.zip |
Fixed issue 8034
http://hercules.ws/board/tracker/issue-8034-map-crash-scripts/
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/script.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map/script.c b/src/map/script.c index 1dff4c202..1b441cabd 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -7352,7 +7352,8 @@ BUILDIN(strnpcinfo) { name = aStrdup(nd->exname); break; case 4: // map name - name = aStrdup(map->list[nd->bl.m].name); + if( nd->bl.m >= 0 ) // Only valid map indexes allowed (issue:8034) + name = aStrdup(map->list[nd->bl.m].name); break; } |