From a43854420d8dbc367be083dedb4a151303de51ba Mon Sep 17 00:00:00 2001 From: xawotihs Date: Wed, 27 Nov 2013 20:33:59 +0100 Subject: [PATCH] Fixed compilation issue on Windows --- projects/mtg/src/DeckStats.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/mtg/src/DeckStats.cpp b/projects/mtg/src/DeckStats.cpp index 5cb4c4dff..9f50b2a7c 100644 --- a/projects/mtg/src/DeckStats.cpp +++ b/projects/mtg/src/DeckStats.cpp @@ -287,8 +287,8 @@ void StatsWrapper::initValues() countCreatures = countSpells = countInstants = countEnchantments = countSorceries = countArtifacts = 0; //this works only with 0.0f on floats - memset(noLandsProbInTurn, 0.0f, sizeof(float) * Constants::STATS_FOR_TURNS); - memset(noCreaturesProbInTurn, 0.0f, sizeof(float) * Constants::STATS_FOR_TURNS); + memset(noLandsProbInTurn, (int)0.0f, sizeof(float) * Constants::STATS_FOR_TURNS); + memset(noCreaturesProbInTurn, (int)0.0f, sizeof(float) * Constants::STATS_FOR_TURNS); memset(countCardsPerCost, 0, sizeof(int) * (Constants::STATS_MAX_MANA_COST + 1)); memset(countCreaturesPerCost, 0, sizeof(int) * (Constants::STATS_MAX_MANA_COST + 1));