[10309] Make AreaTriggerEntry passed in script call const.

Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
zergtmn 2010-08-02 08:29:13 +02:00 committed by NoFantasy
parent 1500be4079
commit a6d0b61d45
4 changed files with 4 additions and 4 deletions

View file

@ -279,7 +279,7 @@ bool GOChooseReward( Player *player, GameObject *_GO, Quest *_Quest, uint32 opt
}
MANGOS_DLL_EXPORT
bool AreaTrigger ( Player *player, AreaTriggerEntry* atEntry )
bool AreaTrigger(Player *player, AreaTriggerEntry const* atEntry)
{
Script *tmpscript = m_scripts[GetAreaTriggerScriptId(atEntry->id)];
if (!tmpscript || !tmpscript->pAreaTrigger)