mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-05-21 18:13:52 +00:00
Remove AUTO_VAR macro and _toString function (#592)
This commit is contained in:
parent
7d6658fe5b
commit
55231bb8d3
294 changed files with 5067 additions and 5773 deletions
|
|
@ -101,9 +101,9 @@ void Witch::aiStep()
|
|||
vector<MobEffectInstance *> *effects = Item::potion->getMobEffects(item);
|
||||
if (effects != NULL)
|
||||
{
|
||||
for(AUTO_VAR(it, effects->begin()); it != effects->end(); ++it)
|
||||
for(auto& effect : *effects)
|
||||
{
|
||||
addEffect(new MobEffectInstance(*it));
|
||||
addEffect(new MobEffectInstance(effect));
|
||||
}
|
||||
}
|
||||
delete effects;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue