summaryrefslogtreecommitdiffstats
path: root/libdimension/light.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdimension/light.c')
-rw-r--r--libdimension/light.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libdimension/light.c b/libdimension/light.c
index d64b2a2..fdb65bd 100644
--- a/libdimension/light.c
+++ b/libdimension/light.c
@@ -1,5 +1,5 @@
/*************************************************************************
- * Copyright (C) 2009-2011 Tavian Barnes <tavianator@tavianator.com> *
+ * Copyright (C) 2009-2014 Tavian Barnes <tavianator@tavianator.com> *
* *
* This file is part of The Dimension Library. *
* *
@@ -30,7 +30,7 @@
dmnsn_light *
dmnsn_new_light(void)
{
- dmnsn_light *light = dmnsn_malloc(sizeof(dmnsn_light));
+ dmnsn_light *light = DMNSN_MALLOC(dmnsn_light);
light->direction_fn = NULL;
light->illumination_fn = NULL;
light->shadow_fn = NULL;