1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-20 23:50:27 +00:00

solnihv:: set result[3] to zero, as otherwise it may become infinite

This commit is contained in:
Zeno Rogue 2019-10-26 18:24:45 +02:00
parent fde37d56a9
commit a9d3efe02c

View File

@ -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;