what happens if there are 0 instances and you GetObjParamFirstInstance, and store that to a CRunObject*?
is the pointer invalid?
if not, what happens when you try to manipulate that phantom object?
is it safe to check ->pType?
Develop games in your browser. Powerful, performant & highly capable.
It returns NULL. So obviously you cannot then dereference it.