mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-20 11:54:48 +00:00
fixed a possible buffer overflow while in finishshape()
This commit is contained in:
parent
9a0b8935a3
commit
adf0f36ea1
@ -121,7 +121,7 @@ void geometry_information::finishshape() {
|
||||
if(DIM == 3) {
|
||||
using namespace hyperpoint_vec;
|
||||
last->intester = Hypc;
|
||||
for(int i=last->s; i<=last->e; i++) last->intester += hpc[i];
|
||||
for(int i=last->s; i<last->e; i++) last->intester += hpc[i];
|
||||
if(last->s != last->e) last->intester /= last->e-last->s;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user