summaryrefslogtreecommitdiff
path: root/fxmaze.c
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2013-11-18 16:20:35 +0100
committerschneefux <schneefux+commit@schneefux.xyz>2013-11-18 16:20:35 +0100
commit423c99862f5057b13bd2f8cb277fb04d7c6222f3 (patch)
tree0602e1ea1be462f50eeb70b79f2d6563acd06cec /fxmaze.c
parent0d9a7c969269fc4d0b94b732136bff70903116ba (diff)
downloadfx-maze-423c99862f5057b13bd2f8cb277fb04d7c6222f3.tar.gz
fx-maze-423c99862f5057b13bd2f8cb277fb04d7c6222f3.zip
improved error feedback
Diffstat (limited to 'fxmaze.c')
-rw-r--r--fxmaze.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fxmaze.c b/fxmaze.c
index 3f9811d..15fb95a 100644
--- a/fxmaze.c
+++ b/fxmaze.c
@@ -161,7 +161,7 @@ int AddIn_main(int isAppli, unsigned short OptionNum)
{
sprites = (struct st_sprite *) malloc(ENEMYCNT * sizeof(struct st_sprite));
// these are debug checks; there should be enough memory
- if(sprites == NULL)error();
+ if(sprites == NULL)error("Memory; locate enemies");
}
// spritecnt holds the number of all sprites; enemies, items and whatever else will come