mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
[10309] Make AreaTriggerEntry passed in script call const.
Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
parent
1500be4079
commit
a6d0b61d45
4 changed files with 4 additions and 4 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ struct Script
|
|||
bool (*pChooseReward )(Player *player, Creature *_Creature, Quest const*_Quest, uint32 opt );
|
||||
bool (*pItemHello )(Player *player, Item *_Item, Quest const*_Quest );
|
||||
bool (*pGOHello )(Player *player, GameObject *_GO );
|
||||
bool (*pAreaTrigger )(Player *player, AreaTriggerEntry* at);
|
||||
bool (*pAreaTrigger )(Player *player, AreaTriggerEntry const* at);
|
||||
bool (*pProcessEventId )(uint32 eventId, Object* source, Object* target, bool isStart);
|
||||
bool (*pItemQuestAccept )(Player *player, Item *_Item, Quest const*_Quest );
|
||||
bool (*pGOQuestAccept )(Player *player, GameObject *_GO, Quest const*_Quest );
|
||||
|
|
|
|||
|
|
@ -88,7 +88,7 @@ bool GOChooseReward_default(Player* /*player*/, GameObject* /*_GO*/, Quest const
|
|||
return false;
|
||||
}
|
||||
|
||||
bool AreaTrigger_default(Player* /*player*/, AreaTriggerEntry* /*atEntry*/ )
|
||||
bool AreaTrigger_default(Player* /*player*/, AreaTriggerEntry const* /*atEntry*/ )
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "10308"
|
||||
#define REVISION_NR "10309"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue