shithub: tinygl

Download patch

ref: 3201b4c5faf9949c1a4e655d4894c8cc4353869e
parent: 2c2b67808907102d662da2cb8f44dc0eb67a9a7b
author: MHS <gek@katherine>
date: Wed Mar 24 16:18:29 EDT 2021

Automatic commit.

--- a/include-demo/chadphys.h
+++ b/include-demo/chadphys.h
@@ -135,7 +135,9 @@
 	//Resolve collisions (if any)
 	for(int iter = 0; iter < collisioniter; iter++)
 	for(int i = 0; i < (int)(world->nbodies-1); i++)
+	if(world->bodies[i])
 	for(int j = i+1; j < (int)world->nbodies; j++)
+	if(world->bodies[j])
 		resolveBodies(world->bodies[i], world->bodies[j]);
 }
 #endif