- picanmbackup must be initialized.

This commit is contained in:
Christoph Oelckers 2020-05-24 20:30:02 +02:00
parent 6007d5dc8f
commit 9bb1e43c9f

View file

@ -176,7 +176,7 @@ void BuildTiles::AddTiles (int firsttile, TArray<uint8_t>& RawData, bool permap)
auto tex = GetTileTexture("", RawData, uint32_t(tiledata - tiles), width, height);
AddTile(i, tex);
int leftoffset, topoffset;
this->tiledata[i].picanm = tileConvertAnimFormat(anm, &leftoffset, &topoffset);
this->tiledata[i].picanmbackup = this->tiledata[i].picanm = tileConvertAnimFormat(anm, &leftoffset, &topoffset);
tex->SetOffsets(leftoffset, topoffset);
tiledata += size;