diff --git a/server/gameserver/room.cc b/server/gameserver/room.cc index 29547a0a..122979bb 100644 --- a/server/gameserver/room.cc +++ b/server/gameserver/room.cc @@ -3690,7 +3690,22 @@ void Room::CreateWorldObjects() break; case 2: { + const mt::Hero* hero_meta = mt::Hero::GetById(std::get<1>(tuple)); + if (hero_meta) { + Position hero_pos; + hero_pos.FromGlmVec3(objects[i]->pos); + int team_id = 666; + Creature* master = nullptr; + + glm::vec3 dir = GlmHelper::UP; + + Hero* hero = CreateHero(master, + hero_meta, + hero_pos.ToGlmVec3(), + dir, + team_id); + } } break; default: