diff options
Diffstat (limited to 'src/map/map.c')
-rw-r--r-- | src/map/map.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/map/map.c b/src/map/map.c index fcb1a58ac..7c1ba6c4c 100644 --- a/src/map/map.c +++ b/src/map/map.c @@ -3227,7 +3227,13 @@ static int map_abort_sub(DBKey key,void * data,va_list ap) //------------------------------ void do_abort(void) { + static int run = 0; //Save all characters and then flush the inter-connection. + if (run) { + ShowFatalError("Server has crashed while trying to save characters. Character data can't be saved!\n"); + return; + } + run = 1; if (!chrif_isconnected()) { if (pc_db->size(pc_db)) |