1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00
This commit is contained in:
Laserlicht
2024-08-01 21:30:53 +02:00
parent fb171ab3a2
commit 490f1bfee6
7 changed files with 63 additions and 28 deletions

View File

@@ -676,10 +676,7 @@ void CGameHandler::addStatistics()
if (elem.first == PlayerColor::NEUTRAL || !elem.first.isValidPlayer())
continue;
StatisticDataSetEntry data;
data.day = getDate(Date::DAY);
data.player = elem.first;
auto data = StatisticDataSet::createEntry(&elem.second, gs);
gameState()->statistic.add(data);
}