summaryrefslogtreecommitdiffhomepage
path: root/src/rlgl.c
diff options
context:
space:
mode:
authorRay <[email protected]>2016-08-07 11:14:08 +0200
committerRay <[email protected]>2016-08-07 11:14:08 +0200
commit2c079d7c6ea0a5a252f0d3f93bc39e8f5700e23a (patch)
tree27e6fede3eff7a198a28502d5d11efa907d3da9f /src/rlgl.c
parent46248b0922846e4beb386c5cf8fc12ebd3219b72 (diff)
downloadraylib-2c079d7c6ea0a5a252f0d3f93bc39e8f5700e23a.tar.gz
raylib-2c079d7c6ea0a5a252f0d3f93bc39e8f5700e23a.zip
Review Lua examples and formatting
Diffstat (limited to 'src/rlgl.c')
-rw-r--r--src/rlgl.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rlgl.c b/src/rlgl.c
index 6fb4bf3d..68d562c7 100644
--- a/src/rlgl.c
+++ b/src/rlgl.c
@@ -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)