Skip to content

Commit 7149295

Browse files
committed
fix string errors
1 parent 347ddc7 commit 7149295

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

code/mission/missionparse.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4972,7 +4972,7 @@ void parse_prop(mission* /*pm*/)
49724972
}
49734973

49744974
if (Fred_running) {
4975-
Warning(LOCATION, text.c_str());
4975+
Warning(LOCATION, "%s", text.c_str());
49764976
} else {
49774977
mprintf(("MISSIONS: %s", text.c_str()));
49784978
}

fred2/missionsave.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5247,7 +5247,7 @@ int CFred_mission_save::save_props()
52475247

52485248
required_string_fred("$Class:");
52495249
parse_comments(2);
5250-
fout(" %s", Prop_info[p->prop_info_index].name);
5250+
fout(" %s", Prop_info[p->prop_info_index].name.c_str());
52515251

52525252
required_string_fred("$Location:");
52535253
parse_comments();

qtfred/src/mission/missionsave.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5429,7 +5429,7 @@ int CFred_mission_save::save_props()
54295429

54305430
required_string_fred("$Class:");
54315431
parse_comments(2);
5432-
fout(" %s", Prop_info[p->prop_info_index].name);
5432+
fout(" %s", Prop_info[p->prop_info_index].name.c_str());
54335433

54345434
required_string_fred("$Location:");
54355435
parse_comments();

0 commit comments

Comments
 (0)