Make GetFactionReaction garbage argument optional

This commit is contained in:
scrawl 2014-06-25 01:12:57 +02:00
parent 3d9bdad8ba
commit b259c5def2
2 changed files with 1 additions and 4 deletions

View file

@ -227,9 +227,6 @@ namespace MWScript
std::string faction2 = runtime.getStringLiteral (runtime[0].mInteger); std::string faction2 = runtime.getStringLiteral (runtime[0].mInteger);
runtime.pop(); runtime.pop();
// ignore extra garbage argument
runtime.pop();
runtime.push(MWBase::Environment::get().getDialogueManager() runtime.push(MWBase::Environment::get().getDialogueManager()
->getFactionReaction(faction1, faction2)); ->getFactionReaction(faction1, faction2));
} }

View file

@ -180,7 +180,7 @@ namespace Compiler
extensions.registerFunction("samefaction", 'l', "", opcodeSameFaction, extensions.registerFunction("samefaction", 'l', "", opcodeSameFaction,
opcodeSameFactionExplicit); opcodeSameFactionExplicit);
extensions.registerInstruction("modfactionreaction", "ccl", opcodeModFactionReaction); extensions.registerInstruction("modfactionreaction", "ccl", opcodeModFactionReaction);
extensions.registerFunction("getfactionreaction", 'l', "ccl", opcodeGetFactionReaction); extensions.registerFunction("getfactionreaction", 'l', "ccX", opcodeGetFactionReaction);
extensions.registerInstruction("clearinfoactor", "", opcodeClearInfoActor, opcodeClearInfoActorExplicit); extensions.registerInstruction("clearinfoactor", "", opcodeClearInfoActor, opcodeClearInfoActorExplicit);
} }
} }