Commit b8c7cf1e authored by Vasiliy's avatar Vasiliy
Browse files

Return created object if model not exist.

parent 83944c07596e
......@@ -2868,6 +2868,8 @@ const char* UEngine::Model_AddComponent(const char* stringid, const char *classn
if(!destcont)
{
if(cont)
Storage->ReturnObject(cont);
DestroyTempString(TempString);
return 0;
}
......
Markdown is supported
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