From 9f21e4b46f51a6a9f7709e4c006ad7cf0fee5980 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20W=2E=20Urba=C5=84czyk?= Date: Wed, 9 Feb 2011 12:33:58 +0000 Subject: [PATCH] Minor compile fix, std::copy used that way overwrites original bonuses [but the code won't be needed anyway] --- client/CAnimation.cpp | 2 +- lib/CCreatureHandler.cpp | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/client/CAnimation.cpp b/client/CAnimation.cpp index 6195dfd19..f0585c04c 100644 --- a/client/CAnimation.cpp +++ b/client/CAnimation.cpp @@ -195,7 +195,7 @@ void CDefFile::loadFrame(size_t frame, size_t group, ImageLoader &loader) const case 1: { //for each line we have offset of pixel data - const ui32 * RWEntriesLoc = reinterpret_cast(FDef+currentOffset); + const ui32 * RWEntriesLoc = reinterpret_cast(FDef+currentOffset); currentOffset += sizeof(ui32) * sprite.height; for (unsigned int i=0; ilevel < 7) - std::copy(commonBonuses[it-1].begin(), commonBonuses[it-1].end(), c->bonuses.begin()); - else - std::copy(commonBonuses[7].begin(), commonBonuses[7].end(), c->bonuses.begin()); //common for tiers 8+ - } +// BOOST_FOREACH(CCreature *c, creatures) +// { +// if (it = c->level < 7) +// std::copy(commonBonuses[it-1].begin(), commonBonuses[it-1].end(), c->bonuses.begin()); +// else +// std::copy(commonBonuses[7].begin(), commonBonuses[7].end(), c->bonuses.begin()); //common for tiers 8+ +// } } //end of stack experience }