In 1.4.1 Taleworld have modified the method "Hasperk" in the MobileParty class so it checks secondary roles, that's good.
Anyway, they used a switch case to do so and simply forget to put a default case. That could lead to null pointer exception and crash (And it does already).
Adding at the end of this switch
will prevent this exception to happen and makes the code healthier.
Anyway, they used a switch case to do so and simply forget to put a default case. That could lead to null pointer exception and crash (And it does already).
Adding at the end of this switch
Code:
default:
return false;