Core/GameObject: Implement method GetDisplayId, use it for GameObjectModels

This commit is contained in:
Elron103
2012-09-22 18:01:51 +02:00
parent 24d1a5a98e
commit d45a768810
2 changed files with 2 additions and 1 deletions

View File

@@ -148,7 +148,7 @@ bool GameObjectModel::initialize(const GameObject& go, const GameObjectDisplayIn
GameObjectModel* GameObjectModel::Create(const GameObject& go)
{
const GameObjectDisplayInfoEntry* info = sGameObjectDisplayInfoStore.LookupEntry(go.GetGOInfo()->displayId);
const GameObjectDisplayInfoEntry* info = sGameObjectDisplayInfoStore.LookupEntry(go.GetDisplayId());
if (!info)
return NULL;