summaryrefslogtreecommitdiff
path: root/src/char/int_guild.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/char/int_guild.c')
-rw-r--r--src/char/int_guild.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/char/int_guild.c b/src/char/int_guild.c
index 52514692c..2bf3e0a41 100644
--- a/src/char/int_guild.c
+++ b/src/char/int_guild.c
@@ -391,7 +391,7 @@ int inter_guild_init() {
g = (struct guild *) aCalloc(sizeof(struct guild), 1);
if(g == NULL){
ShowFatalError("int_guild: out of memory!\n");
- exit(0);
+ exit(EXIT_FAILURE);
}
// memset(g, 0, sizeof(struct guild)); not needed...
if (inter_guild_fromstr(line, g) == 0 && g->guild_id > 0) {
@@ -420,7 +420,7 @@ int inter_guild_init() {
gc = (struct guild_castle *) aCalloc(sizeof(struct guild_castle), 1);
if(gc == NULL){
ShowFatalError("int_guild: out of memory!\n");
- exit(0);
+ exit(EXIT_FAILURE);
}
// memset(gc, 0, sizeof(struct guild_castle)); No need...
if (inter_guildcastle_fromstr(line, gc) == 0) {
@@ -439,7 +439,7 @@ int inter_guild_init() {
gc = (struct guild_castle *) aCalloc(sizeof(struct guild_castle), 1);
if (gc == NULL) {
ShowFatalError("int_guild: out of memory!\n");
- exit(0);
+ exit(EXIT_FAILURE);
}
gc->castle_id = i;
idb_put(castle_db, gc->castle_id, gc);
@@ -979,7 +979,7 @@ int mapif_parse_CreateGuild(int fd, int account_id, char *name, struct guild_mem
if (g == NULL) {
ShowFatalError("int_guild: CreateGuild: out of memory !\n");
mapif_guild_created(fd, account_id, NULL);
- exit(0);
+ exit(EXIT_FAILURE);
}
// memset(g, 0, sizeof(struct guild)); Meh...
g->guild_id = guild_newid++;