diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2013-11-18 16:20:35 +0100 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2013-11-18 16:20:35 +0100 |
| commit | 423c99862f5057b13bd2f8cb277fb04d7c6222f3 (patch) | |
| tree | 0602e1ea1be462f50eeb70b79f2d6563acd06cec /mapgen.c | |
| parent | 0d9a7c969269fc4d0b94b732136bff70903116ba (diff) | |
| download | fx-maze-423c99862f5057b13bd2f8cb277fb04d7c6222f3.tar.gz fx-maze-423c99862f5057b13bd2f8cb277fb04d7c6222f3.zip | |
improved error feedback
Diffstat (limited to 'mapgen.c')
| -rw-r--r-- | mapgen.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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;
|
