clearing unused TriheptaSpecial shapes to fix a crash on iOS

This commit is contained in:
Zeno Rogue 2019-06-03 22:25:17 +02:00
parent db744db786
commit e61930c0b1
2 changed files with 2 additions and 1 deletions

View File

@ -4080,6 +4080,7 @@ struct hpcshape {
basic_textureinfo *tinf;
int texture_offset;
int shs, she;
void clear() { s = e = shs = she = texture_offset = 0; prio = PPR::ZERO; tinf = NULL; flags = 0; }
};
extern vector<hpcshape> shPlainWall3D, shWireframe3D, shWall3D, shMiniWall3D;

View File

@ -1067,7 +1067,7 @@ void geometry_information::prepare_shapes() {
bshape(shAsymmetric, PPR::TEXT, scalefactor, 374);
for(auto& sh: shTriheptaSpecial) sh.s = sh.e = 0;
for(auto& sh: shTriheptaSpecial) sh.clear();
bshape(shTriheptaSpecial[2], PPR::FLOOR, scalefactor, 32);
bshape(shTriheptaSpecial[3], PPR::FLOOR, scalefactor, 33);