diff options
author | Rafał Mikrut <mikrutrafal54@gmail.com> | 2019-11-20 16:22:16 +0100 |
---|---|---|
committer | Rafał Mikrut <mikrutrafal54@gmail.com> | 2019-11-20 16:22:16 +0100 |
commit | 99d8626f4a313471410db421891e90fe768cd929 (patch) | |
tree | b5e855e2c2a8b142af4fc01cfbc0a0257a01ccc5 /scene/2d/tile_map.cpp | |
parent | 58ca9f17a2650bb381972210d1babbf34ac6819c (diff) | |
download | redot-engine-99d8626f4a313471410db421891e90fe768cd929.tar.gz |
Fix some overflows and unitialized variables
Diffstat (limited to 'scene/2d/tile_map.cpp')
-rw-r--r-- | scene/2d/tile_map.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/2d/tile_map.cpp b/scene/2d/tile_map.cpp index 173214dfe4..d75d8cfc55 100644 --- a/scene/2d/tile_map.cpp +++ b/scene/2d/tile_map.cpp @@ -1233,8 +1233,8 @@ void TileMap::_set_tile_data(const PoolVector<int> &p_data) { } #endif - int16_t x = decode_uint16(&local[0]); - int16_t y = decode_uint16(&local[2]); + uint16_t x = decode_uint16(&local[0]); + uint16_t y = decode_uint16(&local[2]); uint32_t v = decode_uint32(&local[4]); bool flip_h = v & (1 << 29); bool flip_v = v & (1 << 30); |