1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-21 09:23:51 +00:00

fix for PCJoinFaction and for getPcRank without explicit reference

This commit is contained in:
Marc Zinnschlag 2014-08-23 18:45:06 +02:00
parent 0d8bfbfa9b
commit 7de49a66e2

View file

@ -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)