- Fixed: Disable ifitem jumping if a link isn't specified since an invalid value can cause a crash.

This commit is contained in:
Braden Obrzut 2013-08-09 00:25:29 -04:00
parent bb494292c6
commit 7e76fb0078
2 changed files with 2 additions and 1 deletions

View File

@ -1152,7 +1152,7 @@ void P_StartConversation (AActor *npc, AActor *pc, bool facetalker, bool saveang
break;
}
}
if (jump)
if (jump && CurNode->ItemCheckNode > 0)
{
int root = pc->player->ConversationNPC->ConversationRoot;
CurNode = StrifeDialogues[root + CurNode->ItemCheckNode - 1];

View File

@ -288,6 +288,7 @@ class USDFParser : public UDMFParserBase
//node->ItemCheckCount[0] = node->ItemCheckCount[1] = node->ItemCheckCount[2] = -1;
node->ThisNodeNum = StrifeDialogues.Push(node);
node->ItemCheckNode = -1;
FString SpeakerName;
FString Dialogue;