mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-09-18 08:56:10 -04:00
fix for PCJoinFaction and for getPcRank without explicit reference
This commit is contained in:
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…
x
Reference in New Issue
Block a user