mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 21:23:52 +00:00
Reject conditions testing agaist Choice when not currently in a choice (Fixes #3117)
This commit is contained in:
parent
cd8c84dc6c
commit
994ad3e004
1 changed files with 5 additions and 2 deletions
|
@ -155,10 +155,13 @@ bool MWDialogue::Filter::testDisposition (const ESM::DialInfo& info, bool invert
|
|||
bool MWDialogue::Filter::testSelectStruct (const SelectWrapper& select) const
|
||||
{
|
||||
if (select.isNpcOnly() && (mActor.getTypeName() != typeid (ESM::NPC).name()))
|
||||
// If the actor is a creature, we do not test the conditions applicable
|
||||
// only to NPCs.
|
||||
// If the actor is a creature, we pass all conditions only applicable to NPCs.
|
||||
return true;
|
||||
|
||||
if (select.getFunction() == SelectWrapper::Function_Choice && mChoice == -1)
|
||||
// If not currently in a choice, we reject all conditions that test against choices.
|
||||
return false;
|
||||
|
||||
switch (select.getType())
|
||||
{
|
||||
case SelectWrapper::Type_None: return true;
|
||||
|
|
Loading…
Reference in a new issue