mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-01 02:45:32 +00:00
Issue #256: fixed a capitalisation mistake
This commit is contained in:
parent
5236bcb557
commit
40c58c1bb7
2 changed files with 7 additions and 8 deletions
|
@ -94,7 +94,7 @@ namespace MWMechanics
|
|||
return *this;
|
||||
}
|
||||
|
||||
for (Collection::const_iterator iter (effects.Begin()); iter!=effects.End(); ++iter)
|
||||
for (Collection::const_iterator iter (effects.begin()); iter!=effects.end(); ++iter)
|
||||
{
|
||||
Collection::iterator result = mCollection.find (iter->first);
|
||||
|
||||
|
@ -128,11 +128,11 @@ namespace MWMechanics
|
|||
MagicEffects result;
|
||||
|
||||
// adding/changing
|
||||
for (Collection::const_iterator iter (now.Begin()); iter!=now.End(); ++iter)
|
||||
for (Collection::const_iterator iter (now.begin()); iter!=now.end(); ++iter)
|
||||
{
|
||||
Collection::const_iterator other = prev.mCollection.find (iter->first);
|
||||
|
||||
if (other==prev.End())
|
||||
if (other==prev.end())
|
||||
{
|
||||
// adding
|
||||
result.add (iter->first, iter->second);
|
||||
|
@ -145,17 +145,16 @@ namespace MWMechanics
|
|||
}
|
||||
|
||||
// removing
|
||||
for (Collection::const_iterator iter (prev.Begin()); iter!=prev.End(); ++iter)
|
||||
for (Collection::const_iterator iter (prev.begin()); iter!=prev.end(); ++iter)
|
||||
{
|
||||
Collection::const_iterator other = now.mCollection.find (iter->first);
|
||||
|
||||
if (other==prev.End())
|
||||
if (other==prev.end())
|
||||
{
|
||||
result.add (iter->first, EffectParam() - iter->second);
|
||||
}
|
||||
}
|
||||
|
||||
return result;
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -61,9 +61,9 @@ namespace MWMechanics
|
|||
|
||||
public:
|
||||
|
||||
Collection::const_iterator Begin() const { return mCollection.begin(); }
|
||||
Collection::const_iterator begin() const { return mCollection.begin(); }
|
||||
|
||||
Collection::const_iterator End() const { return mCollection.end(); }
|
||||
Collection::const_iterator end() const { return mCollection.end(); }
|
||||
|
||||
void add (const EffectKey& key, const EffectParam& param);
|
||||
|
||||
|
|
Loading…
Reference in a new issue