Commit 6a81cbc5 authored by Ken Martin's avatar Ken Martin
Browse files

fix bad ordering in SetObjectMacro

parent 65f18a55
......@@ -141,9 +141,13 @@ virtual type Get##name##MaxValue () \
<< "): setting " << #name " to " << args ); \
if (this->name != args) \
{ \
if (this->name != NULL) { this->name->UnRegister(this); } \
type* tempSGMacroVar = this->name; \
this->name = args; \
if (this->name != NULL) { this->name->Register(this); } \
if (tempSGMacroVar != NULL) \
{ \
tempSGMacroVar->UnRegister(this); \
} \
this->Modified(); \
} \
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment