Fix scene_add_object -- break out of the while loop!

This commit is contained in:
Eryn Wells 2013-09-08 20:46:11 -07:00
parent 1760170952
commit 7524c9c3d8

View file

@ -130,6 +130,7 @@ scene_add_object(Scene *scene, Object *obj)
while (ptr != NULL) {
if (ptr->next == NULL) {
ptr->next = ol;
break;
}
ptr = ptr->next;
}