Fix scene_add_object -- break out of the while loop!
This commit is contained in:
parent
1760170952
commit
7524c9c3d8
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue