summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2020-08-07 13:03:52 -0400
committerPikalaxALT <pikalaxalt@gmail.com>2020-08-07 13:03:52 -0400
commit7b9390ad2f68ddf4b89eeaa94bb49e85c1b7916c (patch)
tree47d20215de0a6f26fefb6663f64804ee68013ee1
parentd736d89eb0c8105db234967d86e2ec2aa84061b8 (diff)
minor optimization in msgenc
-rw-r--r--tools/msgenc/msgenc.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/msgenc/msgenc.cpp b/tools/msgenc/msgenc.cpp
index 3408f83d..232a3bee 100644
--- a/tools/msgenc/msgenc.cpp
+++ b/tools/msgenc/msgenc.cpp
@@ -136,11 +136,10 @@ void encode_messages() {
} while (k++ != string::npos);
if (command == "STRVAR") {
- encoded += enc_short(args[0] | command_i, seed);
+ command_i |= args[0];
args.erase(args.begin());
- } else {
- encoded += enc_short(command_i, seed);
}
+ encoded += enc_short(command_i, seed);
encoded += enc_short(args.size(), seed);
for (auto num_i : args) {
encoded += enc_short(num_i, seed);