Skip to content

Commit

Permalink
Fix UpdatePropertyFromJson not returning true when the range value is…
Browse files Browse the repository at this point in the history
… read
  • Loading branch information
FreeSlave committed Aug 4, 2024
1 parent 252423a commit 3c0e11d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions game_shared/json_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ bool UpdatePropertyFromJson(FloatRange& floatRange, Value& jsonValue, const char
if (floatRange.min > floatRange.max) {
floatRange.min = floatRange.max;
}
return true;
}
return false;
}
Expand Down Expand Up @@ -230,6 +231,7 @@ bool UpdatePropertyFromJson(IntRange& intRange, Value& jsonValue, const char* ke
if (intRange.min > intRange.max) {
intRange.min = intRange.max;
}
return true;
}
return false;
}

0 comments on commit 3c0e11d

Please sign in to comment.