Fix build error to_string

This commit is contained in:
valfieri
2020-06-10 23:36:49 +02:00
parent 60e6d314e0
commit c162eff8cf

View File

@@ -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;