summaryrefslogtreecommitdiff
path: root/src/newgrf.cpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2010-05-13 11:07:04 +0000
committersmatz <smatz@openttd.org>2010-05-13 11:07:04 +0000
commit28d25cadfc87398c3b352a07de377b836e4aa0d1 (patch)
tree8770d1a716cbbd56b5c32c62e90b2411d85c6747 /src/newgrf.cpp
parent062dd0e24c283f210216ede06bbde0ed72c7ed25 (diff)
downloadopenttd-28d25cadfc87398c3b352a07de377b836e4aa0d1.tar.xz
(svn r19815) -Cleanup: remove two unused variables
Diffstat (limited to 'src/newgrf.cpp')
-rw-r--r--src/newgrf.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp
index ac4fcce53..4f6b88bf8 100644
--- a/src/newgrf.cpp
+++ b/src/newgrf.cpp
@@ -2183,7 +2183,6 @@ static ChangeInfoResult IndustrytilesChangeInfo(uint indtid, int numinfo, int pr
/* Allocate space for this industry. */
if (*tilespec == NULL) {
- int tempid;
*tilespec = CallocT<IndustryTileSpec>(1);
tsp = *tilespec;
@@ -2199,7 +2198,7 @@ static ChangeInfoResult IndustrytilesChangeInfo(uint indtid, int numinfo, int pr
tsp->grf_prop.local_id = indtid + i;
tsp->grf_prop.subst_id = subs_id;
tsp->grf_prop.grffile = _cur_grffile;
- tempid = _industile_mngr.AddEntityID(indtid + i, _cur_grffile->grfid, subs_id); // pre-reserve the tile slot
+ _industile_mngr.AddEntityID(indtid + i, _cur_grffile->grfid, subs_id); // pre-reserve the tile slot
}
} break;