Skip to content

Commit

Permalink
Fixed memory issue related to log line
Browse files Browse the repository at this point in the history
  • Loading branch information
luciensadi committed Jul 8, 2024
1 parent d5f972d commit a075055
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/newdb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2070,7 +2070,7 @@ bool does_player_exist(const char *unknown_case_name)

// Look them up in our cache.
try {
log_vfprintf("does_player_exist(%s): cache = %s", global_existing_player_cache.at(string_name) ? "TRUE" : "FALSE");
log_vfprintf("does_player_exist(%s -> %s): cache = %s", unknown_case_name, composed_name, global_existing_player_cache.at(string_name) ? "TRUE" : "FALSE");
// return global_existing_player_cache.at(string_name);
} catch (std::out_of_range) {
log_vfprintf("Failed to find player '%s' in does_player_exist()'s global cache, falling back to database.", composed_name);
Expand Down

0 comments on commit a075055

Please sign in to comment.