mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-30 03:50:34 +00:00
solnihv:: set result[3] to zero, as otherwise it may become infinite
This commit is contained in:
parent
fde37d56a9
commit
a9d3efe02c
@ -110,6 +110,8 @@ EX namespace solnihv {
|
||||
|
||||
for(int t=0; t<3; t++)
|
||||
res[t] = S2(ax) * (bx-ix) + S2(bx) * (ix-ax);
|
||||
|
||||
res[3] = 0;
|
||||
}
|
||||
|
||||
return res;
|
||||
|
Loading…
Reference in New Issue
Block a user