Skip to content

Commit

Permalink
[10714] Avoid unexpected error at action_menu_id < 0 after recent loa…
Browse files Browse the repository at this point in the history
…ding checks adding.
  • Loading branch information
VladimirMangos authored and tomrus88 committed Nov 15, 2010
1 parent 03dde6e commit 9e66837
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/game/ObjectMgr.cpp
Expand Up @@ -9273,7 +9273,7 @@ void ObjectMgr::LoadGossipMenuItems()
continue;
}

if (gMenuItem.action_menu_id)
if (gMenuItem.action_menu_id > 0)
{
if (m_mGossipMenusMap.find(gMenuItem.action_menu_id) == m_mGossipMenusMap.end())
sLog.outErrorDb("Gossip menu option (MenuId: %u Id: %u) have action_menu_id = %u for nonexistent menu", gMenuItem.menu_id, gMenuItem.id, gMenuItem.action_menu_id);
Expand Down
2 changes: 1 addition & 1 deletion src/shared/revision_nr.h
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "10713"
#define REVISION_NR "10714"
#endif // __REVISION_NR_H__

0 comments on commit 9e66837

Please sign in to comment.