mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Merge pull request #7487 from Robyt3/Base-Assert-NoLogger-Fix
Fix `nullptr` access on `dbg_assert` with no global logger
This commit is contained in:
commit
7d0718ee8b
|
@ -36,7 +36,9 @@ void log_set_global_logger(ILogger *logger)
|
|||
|
||||
void log_global_logger_finish()
|
||||
{
|
||||
global_logger.load(std::memory_order_acquire)->GlobalFinish();
|
||||
ILogger *logger = global_logger.load(std::memory_order_acquire);
|
||||
if(logger)
|
||||
logger->GlobalFinish();
|
||||
}
|
||||
|
||||
void log_set_global_logger_default()
|
||||
|
|
Loading…
Reference in a new issue