Skip to content

Commit

Permalink
Fix compiler warning about reaching end of non-void function
Browse files Browse the repository at this point in the history
  • Loading branch information
jhasse committed Jul 3, 2024
1 parent dad3023 commit a30aaef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,7 @@ float Player::getMaxSpeed() const
if (auto _game = game.lock()) {
return (*_game->lua_state)["config"]["player_max_speed"];
}
throw std::runtime_error("Couldn't lock game.");
}

void Player::setMaxSpeed(float speed)
Expand Down

0 comments on commit a30aaef

Please sign in to comment.