From 10bd91f3543f4c08e6d206e45a7b6b65279b8c18 Mon Sep 17 00:00:00 2001 From: frosch Date: Sun, 16 Mar 2025 14:23:31 +0100 Subject: [PATCH] Codefix: Incorrect cast. --- src/newgrf_text.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/newgrf_text.cpp b/src/newgrf_text.cpp index 1f1c78bef4..030bee4a4c 100644 --- a/src/newgrf_text.cpp +++ b/src/newgrf_text.cpp @@ -711,7 +711,7 @@ struct TextRefStack { uint16_t val = this->PopUnsignedByte(); return val | (this->PopUnsignedByte() << 8); } - int16_t PopSignedWord() { return static_cast(this->PopUnsignedWord()); } + int16_t PopSignedWord() { return static_cast(this->PopUnsignedWord()); } uint32_t PopUnsignedDWord() {