Skip to content
This repository was archived by the owner on Jan 5, 2024. It is now read-only.

Commit 7bf333d

Browse files
committed
Made it so parentbreakwound gets set to the same as breakwound, if not specifically defined
This matches what's described in the changelog and it was an oversight that it wasn't happening
1 parent a3c1602 commit 7bf333d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Entities/Attachable.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ namespace RTE {
118118
reader >> m_JointOffset;
119119
} else if (propName == "BreakWound") {
120120
m_BreakWound = dynamic_cast<const AEmitter *>(g_PresetMan.GetEntityPreset(reader));
121+
if (!m_ParentBreakWound) { m_ParentBreakWound = m_BreakWound; }
121122
} else if (propName == "ParentBreakWound") {
122123
m_ParentBreakWound = dynamic_cast<const AEmitter *>(g_PresetMan.GetEntityPreset(reader));
123124
} else if (propName == "InheritsHFlipped") {

0 commit comments

Comments
 (0)