mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-25 06:35:30 +00:00
getpcrank did not read the explicit reference in some cases (Fixed #1767)
This commit is contained in:
parent
7c1b32ae62
commit
0d8bfbfa9b
@ -637,6 +637,8 @@ namespace MWScript
|
||||
|
||||
virtual void execute (Interpreter::Runtime& runtime, unsigned int arg0)
|
||||
{
|
||||
MWWorld::Ptr ptr = R()(runtime);
|
||||
|
||||
std::string factionID = "";
|
||||
if(arg0 >0)
|
||||
{
|
||||
@ -645,8 +647,6 @@ namespace MWScript
|
||||
}
|
||||
else
|
||||
{
|
||||
MWWorld::Ptr ptr = R()(runtime);
|
||||
|
||||
if(ptr.getClass().getNpcStats(ptr).getFactionRanks().empty())
|
||||
{
|
||||
factionID = "";
|
||||
|
Loading…
x
Reference in New Issue
Block a user