1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-11-12 03:33:00 +00:00

currfp returns fp_invalid when fp is not known, and does not use it

This commit is contained in:
Zeno Rogue
2018-11-30 14:39:23 +01:00
parent bf7bb61d35
commit f7db0feef0
4 changed files with 7 additions and 3 deletions

View File

@@ -5823,7 +5823,7 @@ auto graphcm = addHook(clearmemory, 0, [] () {
void resetGeometry() {
precalc();
if(hyperbolic) currfp.analyze();
if(hyperbolic && &currfp != &fieldpattern::fp_invalid) currfp.analyze();
#if CAP_GL
resetGL();
#endif