From bf5f1e9ebf43b2ed00ed0a4f7dafb0076d4acad0 Mon Sep 17 00:00:00 2001 From: Lemongrass3110 Date: Fri, 8 Jan 2021 21:22:45 +0100 Subject: [PATCH] Fixed a chatlog problem with new mariadb versions Fixes #5661 Thanks to @mazvi --- src/map/log.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/map/log.cpp b/src/map/log.cpp index fcf82a3011..a66a5cd526 100644 --- a/src/map/log.cpp +++ b/src/map/log.cpp @@ -466,6 +466,10 @@ void log_chat(e_log_chat_type type, int type_id, int src_charid, int src_accid, return; } + if( dst_charname == nullptr ){ + dst_charname = ""; + } + if( log_config.sql_logs ) { SqlStmt* stmt;