mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-09-26 04:10:49 +00:00
refactor: begin unglobbing std::vector
This commit is contained in:
@@ -106,7 +106,7 @@ bool PigZombie::hurt(DamageSource *source, int dmg)
|
||||
std::shared_ptr<Entity> sourceEntity = source->getEntity();
|
||||
if (dynamic_pointer_cast<Player>(sourceEntity) != NULL)
|
||||
{
|
||||
vector<std::shared_ptr<Entity> > *nearby = level->getEntities( shared_from_this(), bb->grow(32, 32, 32));
|
||||
std::vector<std::shared_ptr<Entity> > *nearby = level->getEntities( shared_from_this(), bb->grow(32, 32, 32));
|
||||
AUTO_VAR(itEnd, nearby->end());
|
||||
for (AUTO_VAR(it, nearby->begin()); it != itEnd; it++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user