diff options
Diffstat (limited to 'src/map/atcommand.cpp')
-rw-r--r-- | src/map/atcommand.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/atcommand.cpp b/src/map/atcommand.cpp index a138b72..0b783a0 100644 --- a/src/map/atcommand.cpp +++ b/src/map/atcommand.cpp @@ -3610,6 +3610,8 @@ ATCE atcommand_mapinfo(Session *s, dumb_ptr<map_session_data> sd, for (int i = 0; i < m_id->npc_num;) { nd = m_id->npc[i]; + if (nd == nullptr) continue; + switch (nd->dir) { case DIR::S: |