Skip to content

Commit ee6379b

Browse files
committed
fix string errors
1 parent 78054b1 commit ee6379b

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
@@ -5147,7 +5147,7 @@ void parse_prop(mission* /*pm*/)
51475147
}
51485148

51495149
if (Fred_running) {
5150-
Warning(LOCATION, text.c_str());
5150+
Warning(LOCATION, "%s", text.c_str());
51515151
} else {
51525152
mprintf(("MISSIONS: %s", text.c_str()));
51535153
}

fred2/missionsave.cpp

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

52895289
required_string_fred("$Class:");
52905290
parse_comments(2);
5291-
fout(" %s", Prop_info[p->prop_info_index].name);
5291+
fout(" %s", Prop_info[p->prop_info_index].name.c_str());
52925292

52935293
required_string_fred("$Location:");
52945294
parse_comments();

qtfred/src/mission/missionsave.cpp

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

54825482
required_string_fred("$Class:");
54835483
parse_comments(2);
5484-
fout(" %s", Prop_info[p->prop_info_index].name);
5484+
fout(" %s", Prop_info[p->prop_info_index].name.c_str());
54855485

54865486
required_string_fred("$Location:");
54875487
parse_comments();

0 commit comments

Comments
 (0)