fix for PCJoinFaction and for getPcRank without explicit reference

deque
Marc Zinnschlag 11 years ago
parent 0d8bfbfa9b
commit 7de49a66e2

@ -528,11 +528,12 @@ namespace MWScript
virtual void execute (Interpreter::Runtime& runtime, unsigned int arg0) virtual void execute (Interpreter::Runtime& runtime, unsigned int arg0)
{ {
MWWorld::Ptr actor = R()(runtime, false);
std::string factionID = ""; std::string factionID = "";
if(arg0==0) if(arg0==0)
{ {
MWWorld::Ptr actor = R()(runtime);
factionID = getDialogueActorFaction(actor); factionID = getDialogueActorFaction(actor);
} }
else else
@ -637,7 +638,7 @@ namespace MWScript
virtual void execute (Interpreter::Runtime& runtime, unsigned int arg0) virtual void execute (Interpreter::Runtime& runtime, unsigned int arg0)
{ {
MWWorld::Ptr ptr = R()(runtime); MWWorld::Ptr ptr = R()(runtime, false);
std::string factionID = ""; std::string factionID = "";
if(arg0 >0) if(arg0 >0)

Loading…
Cancel
Save