mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-31 00:15:35 +00:00
Shuffle code around
This commit is contained in:
parent
d6fc0744c7
commit
6aa52c09da
1 changed files with 6 additions and 4 deletions
|
@ -158,11 +158,13 @@ namespace MWLua
|
||||||
int factionRank = npcStats.getFactionRank(factionId);
|
int factionRank = npcStats.getFactionRank(factionId);
|
||||||
return LuaUtil::toLuaIndex(factionRank);
|
return LuaUtil::toLuaIndex(factionRank);
|
||||||
}
|
}
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
ESM::RefId primaryFactionId = ptr.getClass().getPrimaryFaction(ptr);
|
ESM::RefId primaryFactionId = ptr.getClass().getPrimaryFaction(ptr);
|
||||||
if (factionId == primaryFactionId)
|
if (factionId == primaryFactionId)
|
||||||
return LuaUtil::toLuaIndex(ptr.getClass().getPrimaryFactionRank(ptr));
|
return LuaUtil::toLuaIndex(ptr.getClass().getPrimaryFactionRank(ptr));
|
||||||
|
}
|
||||||
return 0;
|
return 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue