Review Lua examples and formatting

This commit is contained in:
Ray
2016-08-07 11:14:08 +02:00
parent 46248b0922
commit 2c079d7c6e
4 changed files with 65 additions and 65 deletions

View File

@@ -2559,13 +2559,13 @@ void DestroyLight(Light light)
{
if (light != NULL)
{
int light_id = light->id;
int lightId = light->id;
// Free dynamic memory allocation
free(lights[light_id]);
free(lights[lightId]);
// Remove *obj from the pointers array
for (int i = light_id; i < lightsCount; i++)
for (int i = lightId; i < lightsCount; i++)
{
// Resort all the following pointers of the array
if ((i + 1) < lightsCount)