Skip to content

Commit

Permalink
Partially fix spamming OnCardBeingSaved during game save
Browse files Browse the repository at this point in the history
  • Loading branch information
ManlyMarco committed Nov 10, 2022
1 parent 1789f48 commit 7581d15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Shared.Core/Chara/CharacterApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ private static void OnCardBeingSaved(ChaFile chaFile)
}
#endif

var chaControl = gamemode == GameMode.Maker ?
var chaControl = gamemode == GameMode.Maker ? MakerAPI.GetCharacterControl() : chaFile.GetChaControl();
MakerAPI.GetCharacterControl() :
ChaControls.FirstOrDefault(control => control.chaFile == chaFile);

Expand Down

0 comments on commit 7581d15

Please sign in to comment.