diff --git a/src/newgrf.cpp b/src/newgrf.cpp index 74a1f4323b..432f7a81d3 100644 --- a/src/newgrf.cpp +++ b/src/newgrf.cpp @@ -105,7 +105,7 @@ public: FORCEINLINE size_t Remaining() const { - return (int)(end - data); + return end - data; } FORCEINLINE bool HasData() const