TrinityCore/TrinityCore — pull request #7842 by Elron103 (2012-09-22 16:07:05+00:00)
Title: Core/GameObject: Implement method GetDisplayId, use it for GameObjectModels

## Description

Right now GameObjectModels use the static display id from database for finding the correct model for every gameobject.

But for some gameobjects, the display id might change in runtime - for example for destructible buildings. For those we currently get a wrong model assigned to them.

This method reads the display id dynamically from each gameobject, so we will always have the correct model assigned to every gameobject - even on display id changes.

## Revisions

Trinity: https://github.com/TrinityCore/TrinityCore/commit/936c62ef4cfe85b04f689d08696a29a792815c2a
Database: TDB rev. 48