diff options
author | gumi <git@gumi.ca> | 2018-01-03 18:27:22 -0500 |
---|---|---|
committer | gumi <git@gumi.ca> | 2018-01-03 18:27:22 -0500 |
commit | 65ed9867f29bdfafa16f0efbb419f88e9ab139d6 (patch) | |
tree | e032ddc281de45d38139513d9d4c57bb40ca285f | |
parent | 0ca1ab88b5040cb13226fc41bff448c22f5ff175 (diff) | |
download | tmwa-65ed9867f29bdfafa16f0efbb419f88e9ab139d6.tar.gz tmwa-65ed9867f29bdfafa16f0efbb419f88e9ab139d6.tar.bz2 tmwa-65ed9867f29bdfafa16f0efbb419f88e9ab139d6.tar.xz tmwa-65ed9867f29bdfafa16f0efbb419f88e9ab139d6.zip |
mark NPCs as disabled while cleaning
-rw-r--r-- | src/map/npc.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/map/npc.cpp b/src/map/npc.cpp index fb56c55..f0aefa0 100644 --- a/src/map/npc.cpp +++ b/src/map/npc.cpp @@ -1069,6 +1069,7 @@ void npc_free(dumb_ptr<npc_data> nd) return; nd->deletion_pending = true; + nd->flag |= 1; clif_clearchar(nd, BeingRemoveWhy::GONE); npc_propagate_update(nd); map_deliddb(nd); |