no more crashes in some animations

This commit is contained in:
Zeno Rogue 2019-02-06 16:35:04 +01:00
parent dde8b900d7
commit 29cf07920c
1 changed files with 1 additions and 1 deletions

View File

@ -496,7 +496,7 @@ ld circle_radius = acosh(2.), circle_spins = 1;
void moved() {
optimizeview();
if(cheater || autocheat) {
if(hyperbolic && memory_saving_mode && cwt.at != centerover.at && !quotient) {
if(hyperbolic && memory_saving_mode && centerover.at && gmatrix.size() && cwt.at != centerover.at && !quotient) {
if(isNeighbor(cwt.at, centerover.at)) {
cwt.spin = neighborId(centerover.at, cwt.at);
flipplayer = true;