Skip to content

Commit

Permalink
Fix naming
Browse files Browse the repository at this point in the history
  • Loading branch information
Smertig committed Jan 5, 2021
1 parent 095619d commit 8d3cf06
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions source/replay/replay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ void replay::parse(std::istream& is, bool header_only) {
}
}

deser.read(m_mod_version, m_compatible_game_version, m_map_id);
deser.read(m_mod_version, m_game_version, m_map_id);

std::uint32_t player_num;
deser.read(player_num);
Expand Down Expand Up @@ -266,7 +266,7 @@ int replay::get_binary_version() const {
}

const std::string& replay::get_game_version() const {
return m_compatible_game_version;
return m_game_version;
}

const std::string &replay::get_mod_version() const {
Expand Down
2 changes: 1 addition & 1 deletion source/replay/replay.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class replay {
std::uint32_t m_version;
std::time_t m_timestamp;
std::string m_mod_version;
std::string m_compatible_game_version;
std::string m_game_version;
std::int32_t m_map_id;
std::map<std::uint8_t, player_info> m_players;

Expand Down

0 comments on commit 8d3cf06

Please sign in to comment.