Fixed probable re-awake dual class NPE.
This commit is contained in:
@ -398,11 +398,14 @@ public class PcStat extends PlayableStat
|
||||
@Override
|
||||
public final byte getLevel()
|
||||
{
|
||||
if (getActiveChar().isDualClassActive())
|
||||
{
|
||||
return getActiveChar().getDualClass().getLevel();
|
||||
}
|
||||
if (getActiveChar().isSubClassActive())
|
||||
{
|
||||
return getActiveChar().getSubClasses().get(getActiveChar().getClassIndex()).getLevel();
|
||||
}
|
||||
|
||||
return super.getLevel();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user