mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-14 08:04:40 +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()
|
void Trigger::testObjects()
|
||||||
{
|
{
|
||||||
Vector<SceneObject*> foundobjs;
|
Vector<SceneObject*> foundobjs;
|
||||||
gServerContainer.findObjectList(getWorldBox(), 0xFFFFFFFF, &foundobjs);
|
foundobjs.clear();
|
||||||
for (S32 i = 0; i < foundobjs.size(); ++i)
|
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]);
|
GameBase* so = dynamic_cast<GameBase*>(foundobjs[i]);
|
||||||
if (so)
|
if (so)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue