We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6da70a commit 22b5f81Copy full SHA for 22b5f81
code/particle/hosts/EffectHostBeam.cpp
@@ -11,7 +11,7 @@ EffectHostBeam::EffectHostBeam(object* objp, matrix orientationOverride, bool or
11
12
//Beam hosts can never have a parent, so it'll always return global space
13
std::pair<vec3d, matrix> EffectHostBeam::getPositionAndOrientation(bool /*relativeToParent*/, float /*interp*/, const std::optional<vec3d>& tabled_offset) const {
14
- const beam& bm = Beams[m_objnum];
+ const beam& bm = Beams[Objects[m_objnum].instance];
15
vec3d pos = bm.last_start;
16
17
// weight the random points towards the start linearly
0 commit comments