fixed uninitialized direction[3] in surface.cpp

This commit is contained in:
Zeno Rogue 2019-07-03 05:02:14 +02:00
parent 77bd96e6b5
commit 02d209e723
1 changed files with 3 additions and 0 deletions

View File

@ -261,6 +261,9 @@ dexp_data map_to_surface(hyperpoint p, const dexp_origin& dor) {
direction[0] = d * h[0] / rad;
direction[1] = d * h[1] / rad;
direction[2] = 0;
#if MAXMDIM == 4
direction[3] = 0;
#endif
return dexp(dor.zero, dor.M * direction);
}