Fixed probable getAllyCrestId NPE.

Contributed by Sahar.
This commit is contained in:
MobiusDevelopment
2019-10-28 20:39:29 +00:00
parent f7fe3534c3
commit bf4e116a19
18 changed files with 35 additions and 173 deletions

View File

@@ -4202,7 +4202,7 @@ public class PlayerInstance extends Playable
public int getAllyCrestId()
{
return (_clanId == 0) || (_clan.getAllyId() == 0) ? 0 : _clan.getAllyCrestId();
return getAllyId() == 0 ? 0 : _clan.getAllyCrestId();
}
/**