log fix in fatal()
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2005 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -2270,7 +2270,8 @@ void fatal(const char *s, ...)
|
||||
cleanupserver();
|
||||
s_sprintfdlv(msg,s,s);
|
||||
s_sprintfd(out)("fatal: %s", msg);
|
||||
logger->writeline(log::error, out);
|
||||
if(logger) logger->writeline(log::error, out);
|
||||
else puts(out);
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user