From 068b840c0ae8fdc963bdf43f52cf635edc1816a2 Mon Sep 17 00:00:00 2001 From: NotAdam Date: Tue, 25 Dec 2018 20:11:41 +1100 Subject: [PATCH] fix an issue where multiple items could get created at the same time subsequently, they would get the same itemid and this would fail --- src/common/Database/ZoneDbConnection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/Database/ZoneDbConnection.cpp b/src/common/Database/ZoneDbConnection.cpp index 4fa47ceb..807fe35a 100644 --- a/src/common/Database/ZoneDbConnection.cpp +++ b/src/common/Database/ZoneDbConnection.cpp @@ -173,7 +173,7 @@ void Sapphire::Db::ZoneDbConnection::doPrepareStatements() /// ITEM GLOBAL prepareStatement( CHARA_ITEMGLOBAL_INS, "INSERT INTO charaglobalitem ( CharacterId, ItemId, catalogId, stack, UPDATE_DATE ) VALUES ( ?, ?, ?, ?, NOW() );", - CONNECTION_BOTH ); + CONNECTION_SYNC ); /// BNPC TEMPLATES prepareStatement( ZONE_SEL_BNPCTEMPLATES,