mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
fix for trigger::testobjects vector population
This commit is contained in:
parent
fb7ae70676
commit
967841db7a
1 changed files with 6 additions and 2 deletions
|
|
@ -394,8 +394,12 @@ bool Trigger::setTickCmd(void *object, const char *index, const char *data)
|
|||
void Trigger::testObjects()
|
||||
{
|
||||
Vector<SceneObject*> foundobjs;
|
||||
gServerContainer.findObjectList(getWorldBox(), 0xFFFFFFFF, &foundobjs);
|
||||
for (S32 i = 0; i < foundobjs.size(); ++i)
|
||||
foundobjs.clear();
|
||||
if (getSceneManager() && getSceneManager()->getContainer() && getSceneManager()->getZoneManager())
|
||||
getSceneManager()->getContainer()->findObjectList(getWorldBox(), 0xFFFFFFFF, &foundobjs);
|
||||
else return;
|
||||
|
||||
for (S32 i = 0; i < foundobjs.size(); i++)
|
||||
{
|
||||
GameBase* so = dynamic_cast<GameBase*>(foundobjs[i]);
|
||||
if (so)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue