diff options
-rw-r--r-- | sql/updates/6645_world_gameobject_template.sql | 5 | ||||
-rw-r--r-- | sql/world.sql | 2 | ||||
-rw-r--r-- | src/game/GameObject.h | 2 |
3 files changed, 7 insertions, 2 deletions
diff --git a/sql/updates/6645_world_gameobject_template.sql b/sql/updates/6645_world_gameobject_template.sql new file mode 100644 index 00000000000..aca6bc97e11 --- /dev/null +++ b/sql/updates/6645_world_gameobject_template.sql @@ -0,0 +1,5 @@ +-- Alter data6 column in gameobject_template to allow signed value +ALTER TABLE `gameobject_template` CHANGE `data6` `data6temp` INT(10); +ALTER TABLE `gameobject_template` ADD `data6` INT SIGNED NOT NULL AFTER `data5`; +UPDATE `gameobject_template` SET `data6` = `data6temp`; +ALTER TABLE `gameobject_template` DROP `data6temp`; diff --git a/sql/world.sql b/sql/world.sql index 3de75d0c3dc..2262e677378 100644 --- a/sql/world.sql +++ b/sql/world.sql @@ -1147,7 +1147,7 @@ CREATE TABLE `gameobject_template` ( `data3` int(10) unsigned NOT NULL default '0', `data4` int(10) unsigned NOT NULL default '0', `data5` int(10) unsigned NOT NULL default '0', - `data6` int(10) unsigned NOT NULL default '0', + `data6` int(10) signed NOT NULL default '0', `data7` int(10) unsigned NOT NULL default '0', `data8` int(10) unsigned NOT NULL default '0', `data9` int(10) unsigned NOT NULL default '0', diff --git a/src/game/GameObject.h b/src/game/GameObject.h index 1e9c139417c..358af95a9be 100644 --- a/src/game/GameObject.h +++ b/src/game/GameObject.h @@ -129,7 +129,7 @@ struct GameObjectInfo uint32 spellId; //3 uint32 charges; //4 need respawn (if > 0) uint32 cooldown; //5 time in secs - uint32 autoCloseTime; //6 + int32 autoCloseTime; //6 uint32 startDelay; //7 uint32 serverOnly; //8 uint32 stealthed; //9 |