From 49b3568b53fe4d1060eb9b4b543c37b7a4fcad86 Mon Sep 17 00:00:00 2001 From: Fabio Bas Date: Wed, 23 Jul 2014 23:10:48 +0200 Subject: [PATCH] small fix: moving the url length check in the inner loop --- cockatrice/src/priceupdater.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/cockatrice/src/priceupdater.cpp b/cockatrice/src/priceupdater.cpp index 1a84880d6..2a1a012e5 100644 --- a/cockatrice/src/priceupdater.cpp +++ b/cockatrice/src/priceupdater.cpp @@ -145,13 +145,13 @@ void DBPriceUpdater::updatePrices() bNotFirst = true; } muidMap.insert(muid, cards[i]); - } - if(q.length() > 240) - { - urls.append(base + q); - bNotFirst=false; - q = ""; + if(q.length() > 240) + { + urls.append(base + q); + bNotFirst=false; + q = ""; + } } } if(q.length() > 0)