aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/core/game_object.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/titanic/core/game_object.cpp')
-rw-r--r--engines/titanic/core/game_object.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/titanic/core/game_object.cpp b/engines/titanic/core/game_object.cpp
index 3406de6902..1b76ec1960 100644
--- a/engines/titanic/core/game_object.cpp
+++ b/engines/titanic/core/game_object.cpp
@@ -699,15 +699,16 @@ void CGameObject::incState38() {
}
void CGameObject::trueTalkFn1(const CString &name, int val2, int val3) {
- trueTalkFn1(getRoot()->findByName(name), val2, val3);
+ CGameObject *npc = static_cast<CGameObject *>(getRoot()->findByName(name));
+ trueTalkFn1(npc, val2, val3);
}
-void CGameObject::trueTalkFn1(CTreeItem *item, int val2, int val3) {
+void CGameObject::trueTalkFn1(CGameObject *npc, int val2, int val3) {
CGameManager *gameManager = getGameManager();
if (gameManager) {
CTrueTalkManager *talkManager = gameManager->getTalkManager();
if (talkManager)
- talkManager->fn1(item, val2, val3);
+ talkManager->fn1(npc, val2, val3);
}
}