mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-19 07:20:25 +00:00
fixed uninitialized direction[3] in surface.cpp
This commit is contained in:
parent
77bd96e6b5
commit
02d209e723
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user