Use static lifetime for constant array

This commit is contained in:
Jonas Kulla 2015-07-19 17:32:13 +02:00
parent 30465691ae
commit 7017ca1c53
1 changed files with 1 additions and 1 deletions

View File

@ -500,7 +500,7 @@ onTileA4(Reader &reader, int16_t tileID,
Vec2i orig = blitsA4[0].dst;
tileID -= 0x1700;
const int offY[] = { 0, 3, 5, 8, 10, 13 };
static const int offY[] = { 0, 3, 5, 8, 10, 13 };
int patternID = tileID % 0x30;
int autotileID = tileID / 0x30;