Skip to content

Commit

Permalink
fix iter access
Browse files Browse the repository at this point in the history
  • Loading branch information
NQNStudios committed Feb 9, 2025
1 parent feffd2e commit fd0d339
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/game/boe.global.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ inline bool has_feature_flag(std::string flag) {
inline std::string get_feature_flag(std::string flag) {
std::map<std::string, std::string>::const_iterator iter = feature_flags.find(flag);
if(iter == feature_flags.end()) return "";
return *iter;
return iter->second;
}

#endif
2 changes: 1 addition & 1 deletion src/scenario/scenario.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -599,5 +599,5 @@ bool cScenario::has_feature_flag(std::string flag) {
std::string cScenario::get_feature_flag(std::string flag) {
std::map<std::string, std::string>::const_iterator iter = this->feature_flags.find(flag);
if(iter == this->feature_flags.end()) return "";
return *iter;
return iter->second;
}

0 comments on commit fd0d339

Please sign in to comment.