diff --git a/server/gameserver/mapinstance.cc b/server/gameserver/mapinstance.cc index 42fd4e35..cf326e45 100644 --- a/server/gameserver/mapinstance.cc +++ b/server/gameserver/mapinstance.cc @@ -801,10 +801,16 @@ void MapInstance::LoadHouse() HouseInfo p; p.node = node; { - for (auto& point : new_points) { - p.verts.push_back(point.x); - p.verts.push_back(point.y); - p.verts.push_back(point.z); + for (size_t i = 0; i < new_points.size(); ++i) { + const auto& point = new_points[i]; + if (i >= 4) { + p.verts.push_back(point.x); + p.verts.push_back(point.y); + p.verts.push_back(point.z); + } + } + if (p.verts.size() != 3 * 4) { + abort(); } } houses_.push_back(p);