mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
(svn r23894) -Fix (r23893): Use the right variable, not the one that's always going to be 0.
This commit is contained in:
parent
c586e162cb
commit
0552b23d31
@ -107,7 +107,7 @@ bool DecodeSingleSprite(SpriteLoader::Sprite *sprite, uint8 file_slot, size_t fi
|
|||||||
bool last_item = false;
|
bool last_item = false;
|
||||||
/* Look up in the header-table where the real data is stored for this row */
|
/* Look up in the header-table where the real data is stored for this row */
|
||||||
int offset;
|
int offset;
|
||||||
if (container_format >= 2 && num > UINT16_MAX) {
|
if (container_format >= 2 && dest_size > UINT16_MAX) {
|
||||||
offset = (dest_orig[y * 4 + 3] << 24) | (dest_orig[y * 4 + 2] << 16) | (dest_orig[y * 4 + 1] << 8) | dest_orig[y * 4];
|
offset = (dest_orig[y * 4 + 3] << 24) | (dest_orig[y * 4 + 2] << 16) | (dest_orig[y * 4 + 1] << 8) | dest_orig[y * 4];
|
||||||
} else {
|
} else {
|
||||||
offset = (dest_orig[y * 2 + 1] << 8) | dest_orig[y * 2];
|
offset = (dest_orig[y * 2 + 1] << 8) | dest_orig[y * 2];
|
||||||
|
Loading…
Reference in New Issue
Block a user