Skip to content

Commit

Permalink
str() -> cstr() for debug msgs
Browse files Browse the repository at this point in the history
  • Loading branch information
Procyonae committed Apr 10, 2024
1 parent ee69d8a commit 087a04f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/savegame_json.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4659,18 +4659,18 @@ void ter_furn_migrations::check()
const std::string & context ) {
if( !to_ids.first.is_valid() ) {
debugmsg( "ter_furn_migration from '%s' specifies invalid to_ter id '%s'", context,
to_ids.first.str() );
to_ids.first.cstr() );
}
if( !to_ids.second.is_valid() ) {
debugmsg( "ter_furn_migration from '%s' specifies invalid to_furn id '%s'", context,
to_ids.second.str() );
to_ids.second.cstr() );
}
};
for( const auto &migration : ter_migrations ) {
check_to_ids_valid( migration.second, migration.first.str() );
check_to_ids_valid( migration.second, migration.first.cstr() );
}
for( const auto &migration : furn_migrations ) {
check_to_ids_valid( migration.second, migration.first.str() );
check_to_ids_valid( migration.second, migration.first.cstr() );
}
}

Expand Down Expand Up @@ -4954,7 +4954,7 @@ void submap::load( const JsonValue &jv, const std::string &member_name, int vers
if( terstr.is_valid() ) {
iid_ter = terstr.id();
} else {
debugmsg( "invalid ter_str_id '%s'", terstr.str() );
debugmsg( "invalid ter_str_id '%s'", terstr.cstr() );
iid_ter = ter_t_dirt;
}
};
Expand Down Expand Up @@ -5013,7 +5013,7 @@ void submap::load( const JsonValue &jv, const std::string &member_name, int vers
if( furnstr.is_valid() ) {
iid_furn = furnstr.id();
} else {
debugmsg( "invalid furn_str_id '%s'", furnstr.str() );
debugmsg( "invalid furn_str_id '%s'", furnstr.cstr() );
iid_furn = furn_str_id::NULL_ID().id();
}
m->frn[i][j] = iid_furn;
Expand Down

0 comments on commit 087a04f

Please sign in to comment.