From c162eff8cffef49e3d9c5623829efc3126cb8bf0 Mon Sep 17 00:00:00 2001 From: valfieri Date: Wed, 10 Jun 2020 23:36:49 +0200 Subject: [PATCH] Fix build error to_string --- projects/mtg/src/TargetChooser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/mtg/src/TargetChooser.cpp b/projects/mtg/src/TargetChooser.cpp index 88080c303..7be816f9a 100644 --- a/projects/mtg/src/TargetChooser.cpp +++ b/projects/mtg/src/TargetChooser.cpp @@ -771,7 +771,7 @@ TargetChooser * TargetChooserFactory::createTargetChooser(string s, MTGCardInsta cd->removeType("tribal"); #if !defined (PSP) if (!cd->types.size()) - cd->setSubtype(card->getName() + "_DummyType_" + to_string((long double)(rand() % 10000 + 1))); // Fix to avoid type vector size is 0 causing the always true match issue. + cd->setSubtype(card->getName() + "_DummyType_" + std::to_string((long double)(rand() % 10000 + 1))); // Fix to avoid type vector size is 0 causing the always true match issue. #else if (!cd->types.size()){ int i = rand() % 10000 + 1;