Skip to content

Commit e58eb6c

Browse files
authored
Merge branch 'development' into pre611-minor-fixes
2 parents 62de948 + 68bf185 commit e58eb6c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Data/Techion.rte/Devices/Weapons/Nucleo/NucleoShot.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ function OnMessage(self, message, context)
4343
self.detDelay = 4000/math.sqrt(math.max(1, #self.connectableParticles));
4444
self.Vel = Vector(self.Vel.X, self.Vel.Y):DegRotate(#self.connectableParticles * RangeRand(-1, 1));
4545
for k, particle in pairs(self.connectableParticles) do
46-
particle:SendMessage("Nucleo_NewConnectableParticle", self);
46+
particle:SendMessage("Nucleo_NewConnectableParticle", self.UniqueID);
4747
end
4848
elseif message == "Nucleo_NewConnectableParticle" then
49-
table.insert(self.connectableParticles, context);
49+
table.insert(self.connectableParticles, MovableMan:FindObjectByUniqueID(context));
5050
elseif message == "Nucleo_Explode" then
5151
Explode(self);
5252
end

Source/Entities/MovableObject.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ int MovableObject::ReadProperty(const std::string_view& propName, Reader& reader
347347
MatchProperty("RandomizeEffectRotAngle", { reader >> m_RandomizeEffectRotAngle; });
348348
MatchProperty("RandomizeEffectRotAngleEveryFrame", { reader >> m_RandomizeEffectRotAngleEveryFrame; });
349349
MatchProperty("EffectStopTime", {
350-
reader >> m_EffectStopTime;
350+
reader >> m_EffectStopTime;
351351
m_EffectStopTime = std::max(m_EffectStopTime, static_cast<int>(g_TimerMan.GetDeltaTimeMS()) + 1);
352352
});
353353
MatchProperty("EffectStartStrength", {

0 commit comments

Comments
 (0)