From 465d0fe4b478b9022a2642163c4d7947e8a197a9 Mon Sep 17 00:00:00 2001 From: Koncord Date: Sun, 19 Feb 2017 20:38:17 +0800 Subject: [PATCH] [Server] Fix log messages in CellController --- apps/openmw-mp/Cell.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/openmw-mp/Cell.cpp b/apps/openmw-mp/Cell.cpp index f5c1dc167..6d27ab5f9 100644 --- a/apps/openmw-mp/Cell.cpp +++ b/apps/openmw-mp/Cell.cpp @@ -133,7 +133,7 @@ void CellController::removePlayer(Cell *cell, Player *player) if(cell->players.empty()) { - LOG_MESSAGE_SIMPLE(Log::LOG_VERBOSE, "Deleting empty cell from memory: %s", player->npc.mName, player->getId(), cell->cell.getDescription()); + LOG_MESSAGE_SIMPLE(Log::LOG_VERBOSE, "Deleting empty cell from memory: %s", player->npc.mName, player->getId(), cell->cell.getDescription().c_str()); auto it = find(cells.begin(), cells.end(), cell); delete *it; cells.erase(it); @@ -151,7 +151,7 @@ void CellController::update(Player *player) } else { - LOG_MESSAGE_SIMPLE(Log::LOG_VERBOSE, "Player %s (%d) unloaded cell: %s", player->npc.mName, player->getId(), cell.cell.getDescription()); + LOG_MESSAGE_SIMPLE(Log::LOG_VERBOSE, "Player %s (%d) unloaded cell: %s", player->npc.mName, player->getId(), cell.cell.getDescription().c_str()); Cell *c; if(!cell.cell.isExterior()) c = getCellByID(cell.cell.mName);