We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f9483a2 commit 9c32465Copy full SHA for 9c32465
1 file changed
Source/Activities/GibEditor.cpp
@@ -632,7 +632,7 @@ void GibEditor::StuffEditedGibs(MOSRotating* pEditedObject) {
632
// Take each proxy object and stuff it into a Gib instance which then gets stuffed into the object to be saved
633
std::list<MovableObject*>* pProxyGibList = m_pEditorGUI->GetPlacedGibs();
634
for (std::list<MovableObject*>::iterator gItr = pProxyGibList->begin(); gItr != pProxyGibList->end(); ++gItr) {
635
- Gib* newGib;
+ Gib* newGib = new Gib();
636
// Only set the refernce instance directly from the isntanceman. OWNERSHIP IS NOT TRANSFERRED!
637
newGib->m_GibParticle = dynamic_cast<const MovableObject*>(g_PresetMan.GetEntityPreset((*gItr)->GetClassName(), (*gItr)->GetPresetName(), m_ModuleSpaceID));
638
if (newGib->m_GibParticle) {
0 commit comments