Skip to content

Commit 9e3b53f

Browse files
committed
fix string errors
1 parent 0a7d836 commit 9e3b53f

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
@@ -4990,7 +4990,7 @@ void parse_prop(mission* /*pm*/)
49904990
}
49914991

49924992
if (Fred_running) {
4993-
Warning(LOCATION, text.c_str());
4993+
Warning(LOCATION, "%s", text.c_str());
49944994
} else {
49954995
mprintf(("MISSIONS: %s", text.c_str()));
49964996
}

fred2/missionsave.cpp

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

52795279
required_string_fred("$Class:");
52805280
parse_comments(2);
5281-
fout(" %s", Prop_info[p->prop_info_index].name);
5281+
fout(" %s", Prop_info[p->prop_info_index].name.c_str());
52825282

52835283
required_string_fred("$Location:");
52845284
parse_comments();

qtfred/src/mission/missionsave.cpp

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

54615461
required_string_fred("$Class:");
54625462
parse_comments(2);
5463-
fout(" %s", Prop_info[p->prop_info_index].name);
5463+
fout(" %s", Prop_info[p->prop_info_index].name.c_str());
54645464

54655465
required_string_fred("$Location:");
54665466
parse_comments();

0 commit comments

Comments
 (0)