diff --git a/src/openrct2/world/Park.cpp b/src/openrct2/world/Park.cpp index 24ec7fa829..cd17e2ee26 100644 --- a/src/openrct2/world/Park.cpp +++ b/src/openrct2/world/Park.cpp @@ -949,7 +949,7 @@ Peep* Park::GenerateGuest() if (spawn != nullptr) { auto direction = direction_reverse(spawn->direction); - peep = peep_generate(spawn->x, spawn->y, spawn->z); + peep = Peep::Generate(spawn->x, spawn->y, spawn->z); if (peep != nullptr) { peep->sprite_direction = direction << 3; diff --git a/test/tests/Pathfinding.cpp b/test/tests/Pathfinding.cpp index 86140c7647..bdbc2d591c 100644 --- a/test/tests/Pathfinding.cpp +++ b/test/tests/Pathfinding.cpp @@ -69,7 +69,7 @@ protected: // Our start position is in tile coordinates, but we need to give the peep spawn // position in actual world coords (32 units per tile X/Y, 8 per Z level). // Add 16 so the peep spawns in the center of the tile. - Peep* peep = peep_generate(pos->x * 32 + 16, pos->y * 32 + 16, pos->z * 8); + Peep* peep = Peep::Generate(pos->x * 32 + 16, pos->y * 32 + 16, pos->z * 8); // Peeps that are outside of the park use specialized pathfinding which we don't want to // use here