diff options
author | Subv <s.v.h21@hotmail.com> | 2012-10-21 15:33:31 -0500 |
---|---|---|
committer | Subv <s.v.h21@hotmail.com> | 2012-10-21 15:33:31 -0500 |
commit | e475b50f587f5501a61eb9d39ba4f45dc2ff4b3e (patch) | |
tree | 26265bcae0e3908cd7a20b08d5a1ab407cc5543e | |
parent | 5548e891915e95348e733f83814573e665816107 (diff) |
Core/Conditions: Fixed a mistake in Conditions loading which didn't allow to use SAI conditions with negative source entry (guid)
-rw-r--r-- | sql/updates/world/2012_10_21_00_world_conditions.sql | 1 | ||||
-rwxr-xr-x | src/server/game/Conditions/ConditionMgr.cpp | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/sql/updates/world/2012_10_21_00_world_conditions.sql b/sql/updates/world/2012_10_21_00_world_conditions.sql new file mode 100644 index 00000000000..35b44fec196 --- /dev/null +++ b/sql/updates/world/2012_10_21_00_world_conditions.sql @@ -0,0 +1 @@ +ALTER TABLE `conditions` CHANGE COLUMN `SourceEntry` `SourceEntry` MEDIUMINT(8) NOT NULL DEFAULT 0 diff --git a/src/server/game/Conditions/ConditionMgr.cpp b/src/server/game/Conditions/ConditionMgr.cpp index 7dc4b57d188..7b609220c30 100755 --- a/src/server/game/Conditions/ConditionMgr.cpp +++ b/src/server/game/Conditions/ConditionMgr.cpp @@ -737,7 +737,7 @@ void ConditionMgr::LoadConditions(bool isReload) Condition* cond = new Condition(); int32 iSourceTypeOrReferenceId = fields[0].GetInt32(); cond->SourceGroup = fields[1].GetUInt32(); - cond->SourceEntry = fields[2].GetUInt32(); + cond->SourceEntry = fields[2].GetInt32(); cond->SourceId = fields[3].GetInt32(); cond->ElseGroup = fields[4].GetUInt32(); int32 iConditionTypeOrReference = fields[5].GetInt32(); |