mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 04:37:00 +00:00
[9592] fix crash with ACHIEVEMENT_CRITERIA_REQUIRE_INSTANCE_SCRIPT
BattleGroundMap has no GetInstanceData() function
This commit is contained in:
parent
43a0e595ea
commit
e92e01ebac
2 changed files with 4 additions and 1 deletions
|
|
@ -331,6 +331,9 @@ bool AchievementCriteriaRequirement::Meets(uint32 criteria_id, Player const* sou
|
||||||
if (!source->IsInWorld())
|
if (!source->IsInWorld())
|
||||||
return false;
|
return false;
|
||||||
Map* map = source->GetMap();
|
Map* map = source->GetMap();
|
||||||
|
// BattleGroundMap-class is instanceable, but no InstanceMap-class
|
||||||
|
if (map->IsBattleGroundOrArena())
|
||||||
|
return false;
|
||||||
if (!map->Instanceable())
|
if (!map->Instanceable())
|
||||||
{
|
{
|
||||||
sLog.outErrorDb("Achievement system call ACHIEVEMENT_CRITERIA_REQUIRE_INSTANCE_SCRIPT (%u) for achievement criteria %u for non-instance map %u",
|
sLog.outErrorDb("Achievement system call ACHIEVEMENT_CRITERIA_REQUIRE_INSTANCE_SCRIPT (%u) for achievement criteria %u for non-instance map %u",
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "9591"
|
#define REVISION_NR "9592"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue