1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-26 22:37:45 +00:00

Fixed neck and ear being mixed up

This commit is contained in:
Mordred 2018-09-17 23:26:56 +02:00
parent ddb3b69bd6
commit 6eb71b76e4
2 changed files with 13 additions and 17 deletions

View file

@ -110,8 +110,8 @@ enum GearSetSlot :
Waist = 5,
Legs = 6,
Feet = 7,
Neck = 8,
Ear = 9,
Ear = 8,
Neck = 9,
Wrist = 10,
Ring1 = 11,
Ring2 = 12,

View file

@ -358,21 +358,17 @@ void PlayerMinimal::saveAsNew()
g_charaDb.execute( "INSERT INTO charaitemgearset (storageId, CharacterId, "
"container_" + std::to_string( GearSetSlot::MainHand ) + ", "
"container_" +
std::to_string( GearSetSlot::Body ) + ", "
"container_" + std::to_string( GearSetSlot::Hands ) + ", "
"container_" +
std::to_string( GearSetSlot::Legs ) + ", "
"container_" + std::to_string( GearSetSlot::Feet ) + ", "
"container_" +
std::to_string( GearSetSlot::Neck ) + ", "
"container_" + std::to_string( GearSetSlot::Ear ) + ", "
"container_" +
std::to_string( GearSetSlot::Wrist ) + ", "
"container_" + std::to_string( GearSetSlot::Ring1 ) + ", "
"UPDATE_DATE ) "
"VALUES ( " +
std::to_string( InventoryType::GearSet0 ) + ", " + std::to_string( m_id ) + ", " +
"container_" + std::to_string( GearSetSlot::Body ) + ", "
"container_" + std::to_string( GearSetSlot::Hands ) + ", "
"container_" + std::to_string( GearSetSlot::Legs ) + ", "
"container_" + std::to_string( GearSetSlot::Feet ) + ", "
"container_" + std::to_string( GearSetSlot::Neck ) + ", "
"container_" + std::to_string( GearSetSlot::Ear ) + ", "
"container_" + std::to_string( GearSetSlot::Wrist ) + ", "
"container_" + std::to_string( GearSetSlot::Ring1 ) + ", UPDATE_DATE ) "
"VALUES ( " +
std::to_string( InventoryType::GearSet0 ) + ", " +
std::to_string( m_id ) + ", " +
std::to_string( uniqueId ) + ", " +
std::to_string( bodyUid ) + ", " +
std::to_string( handsUid ) + ", " +