mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Conditions: Fixed a mistake in Conditions loading which didn't allow to use SAI conditions with negative source entry (guid)
This commit is contained in:
1
sql/updates/world/2012_10_21_00_world_conditions.sql
Normal file
1
sql/updates/world/2012_10_21_00_world_conditions.sql
Normal file
@@ -0,0 +1 @@
|
||||
ALTER TABLE `conditions` CHANGE COLUMN `SourceEntry` `SourceEntry` MEDIUMINT(8) NOT NULL DEFAULT 0
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user