summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
authorxantara <xantara@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-12-23 01:50:17 +0000
committerxantara <xantara@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-12-23 01:50:17 +0000
commit835e97eea05e582b819789b240aad9268051e435 (patch)
tree97e3959f22501f00576063e40357d1b8337c0179 /src/map/script.c
parent3f60fedef51121c5fa758aff2e7691751f6abaab (diff)
downloadhercules-835e97eea05e582b819789b240aad9268051e435.tar.gz
hercules-835e97eea05e582b819789b240aad9268051e435.tar.bz2
hercules-835e97eea05e582b819789b240aad9268051e435.tar.xz
hercules-835e97eea05e582b819789b240aad9268051e435.zip
` Fixed MF_BATTLEGROUND by Toshiro, bugreport:5150
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15219 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/script.c b/src/map/script.c
index b21f46a64..faab3c1db 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -9812,7 +9812,7 @@ BUILDIN_FUNC(setmapflag)
case MF_ALLOWKS: map[m].flag.allowks = 1; break;
case MF_MONSTER_NOTELEPORT: map[m].flag.monster_noteleport = 1; break;
case MF_PVP_NOCALCRANK: map[m].flag.pvp_nocalcrank = 1; break;
- case MF_BATTLEGROUND: (!val || atoi(val) < 0 || atoi(val) > 2) ? 1 : atoi(val); break;
+ case MF_BATTLEGROUND: map[m].flag.battleground = (!val || atoi(val) < 0 || atoi(val) > 2) ? 1 : atoi(val); break;
case MF_RESET: map[m].flag.reset = 1; break;
}
}