mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-22 00:53:52 +00:00
Fixes #1254: PcRank should return first rank if not in the faction
This commit is contained in:
parent
b2119441b9
commit
84961d7843
1 changed files with 5 additions and 0 deletions
|
@ -307,6 +307,11 @@ namespace MWScript
|
|||
if (it != ranks.end())
|
||||
rank = it->second;
|
||||
|
||||
// If you are not in the faction, PcRank returns the first rank, for whatever reason.
|
||||
// This is used by the dialogue when joining the Thieves Guild in Balmora.
|
||||
if (rank == -1)
|
||||
rank = 0;
|
||||
|
||||
const MWWorld::ESMStore &store = world->getStore();
|
||||
const ESM::Faction *faction = store.get<ESM::Faction>().find(factionId);
|
||||
|
||||
|
|
Loading…
Reference in a new issue