Permalink
Browse files

Conditions: Typo fix in ErrorTextd to ErrorTextId

Signed-off-by: Georgios Burnham H. <georgiosburnham@gmail.com>
  • Loading branch information...
1 parent 746e3f9 commit 7469ea533740d61bd03cbf0941e34af6a0875694 @burnham committed Apr 25, 2012
Showing with 5 additions and 5 deletions.
  1. +3 −3 src/server/game/Conditions/ConditionMgr.cpp
  2. +2 −2 src/server/game/Conditions/ConditionMgr.h
@@ -230,8 +230,8 @@ bool Condition::Meets(Player * player, Unit* invoker)
else
refMeets = true;
- if (sendErrorMsg && ErrorTextd && (!condMeets || !refMeets))//send special error from DB
- player->m_ConditionErrorMsgId = ErrorTextd;
+ if (sendErrorMsg && ErrorTextId && (!condMeets || !refMeets))//send special error from DB
+ player->m_ConditionErrorMsgId = ErrorTextId;
bool script = sScriptMgr->OnConditionCheck(this, player, invoker); // Returns true by default.
@@ -427,7 +427,7 @@ void ConditionMgr::LoadConditions(bool isReload)
cond->mConditionValue2 = fields[7].GetUInt32();
cond->mConditionValue3 = fields[8].GetUInt32();
cond->mNegativeValue = fields[9].GetUInt8();
- cond->ErrorTextd = fields[10].GetUInt32();
+ cond->ErrorTextId = fields[10].GetUInt32();
cond->mScriptId = sObjectMgr->GetScriptId(fields[11].GetCString());
if (iConditionTypeOrReference >= 0)
@@ -118,7 +118,7 @@ struct Condition
uint32 mConditionValue2;
uint32 mConditionValue3;
bool mNegativeValue;
- uint32 ErrorTextd;
+ uint32 ErrorTextId;
uint32 mReferenceId;
uint32 mScriptId;
@@ -135,7 +135,7 @@ struct Condition
mConditionValue3 = 0;
mNegativeValue = false;
mReferenceId = 0;
- ErrorTextd = 0;
+ ErrorTextId = 0;
mScriptId = 0;
}

0 comments on commit 7469ea5

Please sign in to comment.