diff options
author | Charles Pigott <charlespigott@googlemail.com> | 2018-10-14 18:17:09 +0100 |
---|---|---|
committer | frosch <github@elsenhans.name> | 2018-10-31 12:41:49 +0100 |
commit | e0c0394e373d2f3326383e79d7fcb9f4e288ae02 (patch) | |
tree | 0242bbb30aea2abf39ead7af8f0cf7d5fe8f0542 /src/newgrf.cpp | |
parent | f5b1115039e41d7f75f91e7355003f10dd01b352 (diff) | |
download | openttd-e0c0394e373d2f3326383e79d7fcb9f4e288ae02.tar.xz |
Fix: Remove various dead or unnecessary assignments
Diffstat (limited to 'src/newgrf.cpp')
-rw-r--r-- | src/newgrf.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp index 9c5a406ca..93b28a1bc 100644 --- a/src/newgrf.cpp +++ b/src/newgrf.cpp @@ -3472,8 +3472,6 @@ static ChangeInfoResult IndustriesChangeInfo(uint indid, int numinfo, int prop, } else { /* Declared as been valid, can be used */ itt[k].gfx = tempid; - size = k + 1; - copy_from = itt; } } else if (itt[k].gfx == 0xFF) { itt[k].ti.x = (int8)GB(itt[k].ti.x, 0, 8); @@ -3787,8 +3785,6 @@ static ChangeInfoResult AirportChangeInfo(uint airport, int numinfo, int prop, B } else { /* Declared as been valid, can be used */ att[k].gfx = tempid; - size = k + 1; - copy_from = att; } } else if (att[k].gfx == 0xFF) { att[k].ti.x = (int8)GB(att[k].ti.x, 0, 8); |