aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sql/updates/hotfixes/6.x/2016_10_08_00_hotfixes.sql1
-rw-r--r--src/server/database/Database/Implementation/HotfixDatabase.cpp2
-rw-r--r--src/server/game/DataStores/DB2Structure.h2
3 files changed, 3 insertions, 2 deletions
diff --git a/sql/updates/hotfixes/6.x/2016_10_08_00_hotfixes.sql b/sql/updates/hotfixes/6.x/2016_10_08_00_hotfixes.sql
new file mode 100644
index 00000000000..a4750d4b7f9
--- /dev/null
+++ b/sql/updates/hotfixes/6.x/2016_10_08_00_hotfixes.sql
@@ -0,0 +1 @@
+ALTER TABLE `summon_properties` CHANGE `Flags` `Flags` int(10) unsigned NOT NULL DEFAULT '0' AFTER `ID`;
diff --git a/src/server/database/Database/Implementation/HotfixDatabase.cpp b/src/server/database/Database/Implementation/HotfixDatabase.cpp
index 60197392569..a5099a8c7f5 100644
--- a/src/server/database/Database/Implementation/HotfixDatabase.cpp
+++ b/src/server/database/Database/Implementation/HotfixDatabase.cpp
@@ -865,7 +865,7 @@ void HotfixDatabaseConnection::DoPrepareStatements()
"Flags, ID FROM spell_x_spell_visual ORDER BY ID DESC", CONNECTION_SYNCH);
// SummonProperties.db2
- PrepareStatement(HOTFIX_SEL_SUMMON_PROPERTIES, "SELECT ID, Category, Faction, Type, Slot, Flags FROM summon_properties ORDER BY ID DESC", CONNECTION_SYNCH);
+ PrepareStatement(HOTFIX_SEL_SUMMON_PROPERTIES, "SELECT ID, Flags, Category, Faction, Type, Slot FROM summon_properties ORDER BY ID DESC", CONNECTION_SYNCH);
// TactKey.db2
PrepareStatement(HOTFIX_SEL_TACT_KEY, "SELECT ID, Key1, Key2, Key3, Key4, Key5, Key6, Key7, Key8, Key9, Key10, Key11, Key12, Key13, Key14, Key15, "
diff --git a/src/server/game/DataStores/DB2Structure.h b/src/server/game/DataStores/DB2Structure.h
index e9c02124ba0..3c5be5f8436 100644
--- a/src/server/game/DataStores/DB2Structure.h
+++ b/src/server/game/DataStores/DB2Structure.h
@@ -2546,11 +2546,11 @@ struct SpellXSpellVisualEntry
struct SummonPropertiesEntry
{
uint32 ID;
+ uint32 Flags;
uint32 Category;
uint32 Faction;
uint32 Type;
int32 Slot;
- uint32 Flags;
};
#define TACTKEY_SIZE 16