diff options
Diffstat (limited to 'src/game-server/state.cpp')
-rw-r--r-- | src/game-server/state.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/game-server/state.cpp b/src/game-server/state.cpp index d9922df7..bcb93962 100644 --- a/src/game-server/state.cpp +++ b/src/game-server/state.cpp @@ -36,6 +36,7 @@ #include "game-server/mapcomposite.hpp" #include "game-server/mapmanager.hpp" #include "game-server/monster.hpp" +#include "game-server/npc.hpp" #include "net/messageout.hpp" #include "utils/logger.h" @@ -271,6 +272,12 @@ static void informPlayer(MapComposite *map, Character *p) enterMsg.writeShort(q->getSpecy()->getType()); } break; + case OBJECT_NPC: + { + NPC *q = static_cast< NPC * >(o); + enterMsg.writeShort(q->getNPC()); + } break; + default: assert(false); // TODO } |