summaryrefslogtreecommitdiff
path: root/src/map/npc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/npc.cpp')
-rw-r--r--src/map/npc.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/npc.cpp b/src/map/npc.cpp
index a939c74..43926e0 100644
--- a/src/map/npc.cpp
+++ b/src/map/npc.cpp
@@ -1532,8 +1532,8 @@ int npc_parse_mapflag(XString w1, XString, XString w3, ZString w4)
if (battle_config.pk_mode && mf == MapFlag::NOPVP)
{
- m->flag.nopvp = 1;
- m->flag.pvp = 0;
+ m->flag.set(MapFlag::NOPVP, 1);
+ m->flag.set(MapFlag::PVP, 0);
return 0;
}