1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-05-01 16:37:45 +00:00

housing yard objects spawn from the db now

This commit is contained in:
NotAdam 2018-12-26 01:08:54 +11:00
parent e73d9dea0d
commit 68e3f5c3f8

View file

@ -196,8 +196,7 @@ void Sapphire::HousingZone::onPlayerZoneIn( Entity::Player& player )
auto& objects = m_yardObjects[ isInSubdivision ? 1 : 0 ];
memcpy( &housingObjectInit->data().object, objects.data() + ( yardObjectSize * yardPacketNum ),
yardObjectSize * 100 );
memcpy( &housingObjectInit->data().object, objects.data() + ( yardPacketNum * 100 ), yardObjectSize * 100 );
player.queuePacket( housingObjectInit );
}