summaryrefslogtreecommitdiff
path: root/mapgen.c
diff options
context:
space:
mode:
Diffstat (limited to 'mapgen.c')
-rw-r--r--mapgen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mapgen.c b/mapgen.c
index a7e7072..df8d6ab 100644
--- a/mapgen.c
+++ b/mapgen.c
@@ -375,7 +375,7 @@ start:
if(cntwall(curx, cury) >= 3)
{
sprites = (struct st_sprite *) realloc(sprites, (spritecnt + 1) * sizeof(struct st_sprite));
- if(sprites == NULL)error();
+ if(sprites == NULL)error("Memory; create sprites");
sprites[spritecnt].x = curx + 0.5;
sprites[spritecnt].y = cury + 0.5;
sprites[spritecnt].texture.ptr = &pack;