summaryrefslogtreecommitdiff
path: root/src/strgen
diff options
context:
space:
mode:
authorrubidium42 <rubidium@openttd.org>2021-05-11 19:36:21 +0200
committerrubidium42 <rubidium42@users.noreply.github.com>2021-05-15 10:16:10 +0200
commitddaedaf32a1981dcd93cafee0cae879f96207fe4 (patch)
treeddc1b347a797ec74084eac1d943d1bd4314e0455 /src/strgen
parentbb9121dbd4690405b54e7e6ed6e711ead16435ac (diff)
downloadopenttd-ddaedaf32a1981dcd93cafee0cae879f96207fe4.tar.xz
Fix: empty undocumented branches
Diffstat (limited to 'src/strgen')
-rw-r--r--src/strgen/strgen_base.cpp2
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) {