mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 17:05:44 +01:00
*Didn't mean to remove that.. there shouldn't be negative values in the data blob, unless I'm mistaken.
--HG-- branch : trunk
This commit is contained in:
@@ -180,7 +180,7 @@ bool Database::_UpdateDataBlobValue(const uint32 guid, const uint32 field, const
|
||||
return PExecute(
|
||||
"UPDATE characters SET data="
|
||||
"CONCAT(SUBSTRING_INDEX(`data`,' ',%u),' ',"
|
||||
"SUBSTRING_INDEX(SUBSTRING_INDEX(`data`,' ',%u),' ',-1)+%i,"
|
||||
"GREATEST(SUBSTRING_INDEX(SUBSTRING_INDEX(`data`,' ',%u),' ',-1)+%i,0),"
|
||||
"' ',SUBSTRING_INDEX(`data`,' ',%i)) WHERE guid=%u",
|
||||
field, field+1, value, -int32(PLAYER_END-field)-1, guid);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user