mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 06:42:12 +00:00
- Fixed: Disable ifitem jumping if a link isn't specified since an invalid value can cause a crash.
This commit is contained in:
parent
bb494292c6
commit
7e76fb0078
2 changed files with 2 additions and 1 deletions
|
@ -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];
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue