summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2012-07-02 16:23:24 +0000
committerfrosch <frosch@openttd.org>2012-07-02 16:23:24 +0000
commitd56b5783d174ce999c47e5b50578fc2d88953d3b (patch)
treea98de27c830ab23837975bf71001377b5660d89a
parent62670b48b906a7582f130e4b7e2c9f57e2a0fad0 (diff)
downloadopenttd-d56b5783d174ce999c47e5b50578fc2d88953d3b.tar.xz
(svn r24369) -Fix (r24361): Unused stuff is unused.
-rw-r--r--src/newgrf.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp
index 451d181a3..cdd68e11f 100644
--- a/src/newgrf.cpp
+++ b/src/newgrf.cpp
@@ -4410,12 +4410,11 @@ static void SkipAct1(ByteReader *buf)
{
buf->ReadByte();
uint16 num_sets = buf->ReadByte();
- uint16 first_set = 0;
if (num_sets == 0 && buf->HasData(3)) {
/* Extended Action1 format.
* Some GRFs define zero sets of zero sprites, though there is actually no use in that. Ignore them. */
- first_set = buf->ReadExtendedByte();
+ buf->ReadExtendedByte(); // first_set
num_sets = buf->ReadExtendedByte();
}
uint16 num_ents = buf->ReadExtendedByte();