diff options
author | rubidium42 <rubidium@openttd.org> | 2021-05-11 19:36:21 +0200 |
---|---|---|
committer | rubidium42 <rubidium42@users.noreply.github.com> | 2021-05-15 10:16:10 +0200 |
commit | ddaedaf32a1981dcd93cafee0cae879f96207fe4 (patch) | |
tree | ddc1b347a797ec74084eac1d943d1bd4314e0455 /src/strgen | |
parent | bb9121dbd4690405b54e7e6ed6e711ead16435ac (diff) | |
download | openttd-ddaedaf32a1981dcd93cafee0cae879f96207fe4.tar.xz |
Fix: empty undocumented branches
Diffstat (limited to 'src/strgen')
-rw-r--r-- | src/strgen/strgen_base.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/strgen/strgen_base.cpp b/src/strgen/strgen_base.cpp index 60e27e752..9d1346e17 100644 --- a/src/strgen/strgen_base.cpp +++ b/src/strgen/strgen_base.cpp @@ -457,7 +457,7 @@ void EmitGender(Buffer *buffer, char *buf, int value) /* This is a {G 0 foo bar two} command. * If no relative number exists, default to +0 */ - if (!ParseRelNum(&buf, &argidx, &offset)) {} + ParseRelNum(&buf, &argidx, &offset); const CmdStruct *cmd = _cur_pcs.cmd[argidx]; if (cmd == nullptr || (cmd->flags & C_GENDER) == 0) { |