fix(Core/playercreateinfo_item): Alter amount of allowed items (#3122)
* Change table `amount` to SMALLINT Unsigned * Add a note column * Remove deprecated item
This commit is contained in:
@@ -0,0 +1,7 @@
|
|||||||
|
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1591992052509403400');
|
||||||
|
|
||||||
|
DELETE FROM `playercreateinfo_item` WHERE `itemid` = 40582 AND `amount` = -1;
|
||||||
|
|
||||||
|
ALTER TABLE `playercreateinfo_item`
|
||||||
|
CHANGE `amount` `amount` SMALLINT UNSIGNED NOT NULL DEFAULT 1,
|
||||||
|
ADD `Note` VARCHAR(255) AFTER `amount`;
|
||||||
@@ -3333,7 +3333,7 @@ void ObjectMgr::LoadPlayerInfo()
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
int32 amount = fields[3].GetInt8();
|
int32 amount = fields[3].GetUInt16();
|
||||||
|
|
||||||
if (!amount)
|
if (!amount)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user