summaryrefslogtreecommitdiffstats
path: root/libdimension/point_light.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdimension/point_light.c')
-rw-r--r--libdimension/point_light.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libdimension/point_light.c b/libdimension/point_light.c
index a840843..6b5639d 100644
--- a/libdimension/point_light.c
+++ b/libdimension/point_light.c
@@ -1,5 +1,5 @@
/*************************************************************************
- * Copyright (C) 2010-2011 Tavian Barnes <tavianator@tavianator.com> *
+ * Copyright (C) 2010-2014 Tavian Barnes <tavianator@tavianator.com> *
* *
* This file is part of The Dimension Library. *
* *
@@ -60,8 +60,7 @@ dmnsn_new_point_light(dmnsn_vector x0, dmnsn_color color)
{
dmnsn_light *light = dmnsn_new_light();
- dmnsn_point_light_payload *payload
- = dmnsn_malloc(sizeof(dmnsn_point_light_payload));
+ dmnsn_point_light_payload *payload = DMNSN_MALLOC(dmnsn_point_light_payload);
payload->origin = x0;
payload->color = color;
light->ptr = payload;