home
·
contact
·
privacy
projects
/
plomrogue
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed bug that reset turn number to 1 on each savefile load.
[plomrogue]
/
src
/
command_db.c
diff --git
a/src/command_db.c
b/src/command_db.c
index ba33e912dc9df39d8b11fe26626e949f2194354c..25fcd24e90076da9ca8c5c75689c7b487525a6f3 100644
(file)
--- a/
src/command_db.c
+++ b/
src/command_db.c
@@
-81,7
+81,8
@@
extern void init_command_db(struct World * world)
FILE * file = fopen("config/commands", "r");
exit_err(NULL == file, world, err);
uint16_t lines, linemax;
FILE * file = fopen("config/commands", "r");
exit_err(NULL == file, world, err);
uint16_t lines, linemax;
- textfile_sizes(file, &linemax, &lines);
+ err = "Trouble in init_cmds() with textfile_sizes().";
+ exit_err(textfile_sizes(file, &linemax, &lines), world, err);
err = "Trouble in init_cmds() with malloc().";
char * line = malloc(linemax);
exit_err(NULL == line, world, err);
err = "Trouble in init_cmds() with malloc().";
char * line = malloc(linemax);
exit_err(NULL == line, world, err);