summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/npc.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/npc.cpp b/src/npc.cpp
index 0d568309..701e280b 100644
--- a/src/npc.cpp
+++ b/src/npc.cpp
@@ -112,6 +112,7 @@ Being::Type NPC::getType() const
void NPC::talk()
{
+ if (!mNetwork) return;
MessageOut outMsg(mNetwork);
outMsg.writeInt16(CMSG_NPC_TALK);
outMsg.writeInt32(mId);
@@ -120,6 +121,7 @@ void NPC::talk()
void NPC::nextDialog()
{
+ if (!mNetwork) return;
MessageOut outMsg(mNetwork);
outMsg.writeInt16(CMSG_NPC_NEXT_REQUEST);
outMsg.writeInt32(mId);