diff options
Diffstat (limited to 'src/game/GameObject.h')
-rw-r--r-- | src/game/GameObject.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/game/GameObject.h b/src/game/GameObject.h index bc168a3eda4..1e9c139417c 100644 --- a/src/game/GameObject.h +++ b/src/game/GameObject.h @@ -491,6 +491,15 @@ struct GameObjectInfo default: return 0; } } + uint32 GetGossipMenuId() const + { + switch(type) + { + case GAMEOBJECT_TYPE_QUESTGIVER: return questgiver.gossipID; + case GAMEOBJECT_TYPE_GOOBER: return goober.gossipID; + default: return 0; + } + } }; class OPvPCapturePoint; |