Skip to content

Commit

Permalink
ChaosMod/EffectConfig: Fix CustomTime for old configs
Browse files Browse the repository at this point in the history
CustomTime used to be set to -1, which will underflow to the max value with an uint and correspondingly set TimedType to Custom
  • Loading branch information
pongo1231 committed Feb 9, 2025
1 parent 0eec872 commit 470fde5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ChaosMod/Effects/EffectConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ namespace EffectConfig
{
alignas(int) bool Enabled = true;
alignas(int) EffectTimedType TimedType = EffectTimedType::NotTimed;
alignas(int) uint CustomTime = 0;
alignas(int) int CustomTime = 0; // Used to be set to -1 by default so no uint
alignas(int) uint WeightMult = 0;
alignas(int) bool Permanent = false;
alignas(int) bool ExcludedFromVoting = false;
Expand Down

0 comments on commit 470fde5

Please sign in to comment.