fix talents not updating (forgor to make the type nullable)
This commit is contained in:
@@ -287,7 +287,7 @@ namespace Barotrauma
|
|||||||
|
|
||||||
if (TalentTree.IsViableTalentForCharacter(this, prefab.Identifier, talentSelection))
|
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)
|
if (should == null)
|
||||||
{
|
{
|
||||||
GiveTalent(prefab.Identifier);
|
GiveTalent(prefab.Identifier);
|
||||||
|
|||||||
Reference in New Issue
Block a user