mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-21 08:00:25 +00:00
fixed crashes on the sphere
This commit is contained in:
parent
3317e95bfb
commit
74693f43e7
2
hyper.h
2
hyper.h
@ -396,7 +396,7 @@ template<class T> struct connection_table {
|
||||
T*& move(int i) { return move_table[i]; }
|
||||
unsigned char modspin(int i) { return spin(fix(i)); }
|
||||
void fullclear() {
|
||||
for(int i=0; i<MAX_EDGE; i++) move_table[i] = NULL;
|
||||
for(int i=0; i<full()->degree(); i++) move_table[i] = NULL;
|
||||
}
|
||||
void connect(int d0, T* c1, int d1, bool m) {
|
||||
move(d0) = c1;
|
||||
|
Loading…
Reference in New Issue
Block a user