mirror of
https://github.com/SWG-Source/client-tools.git
synced 2026-10-13 05:12:52 -04:00
Update Fix for CuiWidget3dObjectListViewer [E]
ty Geit
This commit is contained in:
+1
-1
@@ -2708,7 +2708,7 @@ void CuiWidget3dObjectListViewer::addObject (Object & obj)
|
||||
|
||||
if (hasFlags (F_alterObjects))
|
||||
{
|
||||
if (obj.isInitialized() && (obj.alter(Clock::frameTime()) != AlterResult::cms_kill))
|
||||
if (obj.isInitialized() && !obj.isInWorld() && (obj.alter(Clock::frameTime()) != AlterResult::cms_kill))
|
||||
{
|
||||
obj.conclude();
|
||||
}
|
||||
|
||||
@@ -222,7 +222,7 @@ void ObjectWatcherList::alter(real time)
|
||||
// is removed from the list withing its alter()
|
||||
|
||||
Object * const obj = (*m_alterSafeObjectVector)[i];
|
||||
if (!obj || !obj->isInitialized())
|
||||
if (!obj || !obj->isInitialized() || obj->isInWorld())
|
||||
continue;
|
||||
|
||||
float const alterResult = obj->alter(time);
|
||||
|
||||
Reference in New Issue
Block a user