Commit fb4bb1e4 authored by Ken Martin's avatar Ken Martin
Browse files

bug in collection getmember stuff

parent 381d7f87
...@@ -45,7 +45,7 @@ int vlSbrRenderer::UpdateActors() ...@@ -45,7 +45,7 @@ int vlSbrRenderer::UpdateActors()
int count = 0; int count = 0;
// loop through actors // loop through actors
for (num = 0; num < this->Actors.GetNumberOfMembers(); num++) for (num = 1; num <= this->Actors.GetNumberOfMembers(); num++)
{ {
anActor = this->Actors.GetMember(num); anActor = this->Actors.GetMember(num);
...@@ -105,7 +105,7 @@ int vlSbrRenderer::UpdateLights () ...@@ -105,7 +105,7 @@ int vlSbrRenderer::UpdateLights ()
cur_light= this->NumberOfLightsBound; cur_light= this->NumberOfLightsBound;
for (i = 0; i < this->Lights.GetNumberOfMembers(); i++) for (i = 1; i <= this->Lights.GetNumberOfMembers(); i++)
{ {
light = this->Lights.GetMember(i); light = this->Lights.GetMember(i);
......
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