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 53868c6 commit 588a06cCopy full SHA for 588a06c
Core/Tools/W3DView/AssetInfo.cpp
@@ -53,8 +53,9 @@ AssetInfoClass::Initialize (void)
53
54
// Assume we are wrapping an instance as apposed to an asset 'name'.
55
RenderObjClass *prender_obj = m_pRenderObj.Peek();
56
- if (prender_obj)
+ if (prender_obj) {
57
prender_obj->Add_Ref();
58
+ }
59
60
// If we are wrapping an asset name, then create an instance of it.
61
if (prender_obj == NULL) {
Core/Tools/W3DView/EmitterInstanceList.cpp
@@ -93,8 +93,9 @@ EmitterInstanceListClass::Add_Emitter (ParticleEmitterClass *emitter)
93
//
94
// Add this emitter to the list and put a hold on its reference
95
96
- if (emitter)
+ if (emitter) {
97
emitter->Add_Ref();
98
99
m_List.Add (emitter);
100
}
101
0 commit comments