fix talents not updating (forgor to make the type nullable)

This commit is contained in:
Evil Factory
2022-06-23 19:48:08 -03:00
parent a154558f0b
commit 33efc519a3

View File

@@ -287,7 +287,7 @@ namespace Barotrauma
if (TalentTree.IsViableTalentForCharacter(this, prefab.Identifier, talentSelection))
{
bool? should = GameMain.LuaCs.Hook.Call<bool>("character.updateTalent", this, prefab, c);
bool? should = GameMain.LuaCs.Hook.Call<bool?>("character.updateTalent", this, prefab, c);
if (should == null)
{
GiveTalent(prefab.Identifier);