Skip to content

Commit

Permalink
Update src/faction.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
GalacticApple and github-actions[bot] authored May 31, 2024
1 parent a8e659d commit e8db0c0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/faction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,9 @@ std::string faction::describe() const

void faction_power_spec::deserialize(const JsonObject& jo)
{
mandatory(jo, false, "faction", faction);
optional(jo, false, "power_min", power_min);
optional(jo, false, "power_max", power_max);
mandatory( jo, false, "faction", faction );
optional( jo, false, "power_min", power_min );
optional( jo, false, "power_max", power_max );

if( !power_min.has_value() && !power_max.has_value() ) {
jo.throw_error( "Must have either a power_min or a power_max" );
Expand Down

0 comments on commit e8db0c0

Please sign in to comment.