diff options
author | mekolat <mekolat@users.noreply.github.com> | 2016-05-12 15:32:49 -0400 |
---|---|---|
committer | mekolat <mekolat@users.noreply.github.com> | 2016-05-12 15:32:49 -0400 |
commit | 67fba86142da3c188ccede6c9403afbc2cd72ea1 (patch) | |
tree | aa8435df2ad26674878343b5e6d4531ccd17f329 | |
parent | ea528aef3470c5829c5f2c887b0be104f5adeafb (diff) | |
download | tmwa-67fba86142da3c188ccede6c9403afbc2cd72ea1.tar.gz tmwa-67fba86142da3c188ccede6c9403afbc2cd72ea1.tar.bz2 tmwa-67fba86142da3c188ccede6c9403afbc2cd72ea1.tar.xz tmwa-67fba86142da3c188ccede6c9403afbc2cd72ea1.zip |
add undefined_gat check to npc_propagate_update()
-rw-r--r-- | src/map/npc.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/npc.cpp b/src/map/npc.cpp index 3eb13b3..2600117 100644 --- a/src/map/npc.cpp +++ b/src/map/npc.cpp @@ -1052,6 +1052,9 @@ void npc_free_internal(dumb_ptr<npc_data> nd_) static void npc_propagate_update(dumb_ptr<npc_data> nd) { + if (nd->bl_m == borrow(undefined_gat)) + return; + int xs = 0, ys = 0; if (dumb_ptr<npc_data_script> nd_ = nd->is_script()) { |