Skip to content

Commit 76b301b

Browse files
authored
Merge pull request #5007 from The-E/fix/5006_ssm_struct_not_initialized
Fix an issue with ssms sending uninitialized messages
2 parents 29217cc + c39861a commit 76b301b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

code/hud/hudartillery.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,8 @@ void parse_ssm(const char *filename)
200200
if (optional_string("+Custom Message:")) {
201201
stuff_string(s.message, F_NAME, NAME_LENGTH);
202202
s.use_custom_message = true;
203+
} else {
204+
s.use_custom_message = false;
203205
}
204206

205207
s.sound_index = gamesnd_id();

0 commit comments

Comments
 (0)