Skip to content

Commit 2c63786

Browse files
committed
fix string errors
1 parent 328e1ca commit 2c63786

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
@@ -5269,7 +5269,7 @@ int CFred_mission_save::save_props()
52695269

52705270
required_string_fred("$Class:");
52715271
parse_comments(2);
5272-
fout(" %s", Prop_info[p->prop_info_index].name);
5272+
fout(" %s", Prop_info[p->prop_info_index].name.c_str());
52735273

52745274
required_string_fred("$Location:");
52755275
parse_comments();

qtfred/src/mission/missionsave.cpp

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

54525452
required_string_fred("$Class:");
54535453
parse_comments(2);
5454-
fout(" %s", Prop_info[p->prop_info_index].name);
5454+
fout(" %s", Prop_info[p->prop_info_index].name.c_str());
54555455

54565456
required_string_fred("$Location:");
54575457
parse_comments();

0 commit comments

Comments
 (0)