Skip to content

Commit 22b5f81

Browse files
authored
Fix Beam Particles (#7057)
1 parent e6da70a commit 22b5f81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

code/particle/hosts/EffectHostBeam.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ EffectHostBeam::EffectHostBeam(object* objp, matrix orientationOverride, bool or
1111

1212
//Beam hosts can never have a parent, so it'll always return global space
1313
std::pair<vec3d, matrix> EffectHostBeam::getPositionAndOrientation(bool /*relativeToParent*/, float /*interp*/, const std::optional<vec3d>& tabled_offset) const {
14-
const beam& bm = Beams[m_objnum];
14+
const beam& bm = Beams[Objects[m_objnum].instance];
1515
vec3d pos = bm.last_start;
1616

1717
// weight the random points towards the start linearly

0 commit comments

Comments
 (0)