diff options
author | glighta <glighta@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-12-05 14:21:13 +0000 |
---|---|---|
committer | glighta <glighta@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-12-05 14:21:13 +0000 |
commit | 819a81b5fd39095b417fa7b4873555e8f6304be1 (patch) | |
tree | c506431938fdfb779bd9e8d9c1bd333f0aeb5364 /src/map/script.c | |
parent | 8c8ef2dd18e2e729450a59e18c6d6b0df9dc4a09 (diff) | |
download | hercules-819a81b5fd39095b417fa7b4873555e8f6304be1.tar.gz hercules-819a81b5fd39095b417fa7b4873555e8f6304be1.tar.bz2 hercules-819a81b5fd39095b417fa7b4873555e8f6304be1.tar.xz hercules-819a81b5fd39095b417fa7b4873555e8f6304be1.zip |
- Re-committed r16986 (pid:161281).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@17002 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/script.c')
-rw-r--r-- | src/map/script.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/map/script.c b/src/map/script.c index 84512291e..5dd8250f2 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -17240,13 +17240,16 @@ static int atcommand_cleanfloor_sub(struct block_list *bl, va_list ap) BUILDIN_FUNC(cleanmap) { const char *map; - int m, index; - short x0, y0, x1, y1; + int m = -1, index = -1; + short x0 = 0, y0 = 0, x1 = 0, y1 = 0; map = script_getstr(st, 2); index = mapindex_name2id(map); if (index) m = map_mapindex2mapid(index); + + if (!m) + return 1; if ((script_lastdata(st) - 2) < 4) { map_foreachinmap(atcommand_cleanfloor_sub, m, BL_ITEM); |