aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/core
diff options
context:
space:
mode:
authorPaul Gilbert2016-09-05 10:06:21 -0400
committerPaul Gilbert2016-09-05 10:06:21 -0400
commit610aab1c635f170348179ac5a2ecccc6971874f8 (patch)
tree08f4e5a698c1666ba171fdf61a20717460f16610 /engines/titanic/core
parentf5ce9c167cd6e16b26e0510dd0d1b19881d86a73 (diff)
downloadscummvm-rg350-610aab1c635f170348179ac5a2ecccc6971874f8.tar.gz
scummvm-rg350-610aab1c635f170348179ac5a2ecccc6971874f8.tar.bz2
scummvm-rg350-610aab1c635f170348179ac5a2ecccc6971874f8.zip
TITANIC: Convert some dynamic_casts back to static_cast as appropriate
Diffstat (limited to 'engines/titanic/core')
-rw-r--r--engines/titanic/core/game_object.cpp2
-rw-r--r--engines/titanic/core/project_item.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/titanic/core/game_object.cpp b/engines/titanic/core/game_object.cpp
index edfce7f2ee..59ae96138d 100644
--- a/engines/titanic/core/game_object.cpp
+++ b/engines/titanic/core/game_object.cpp
@@ -1630,7 +1630,7 @@ bool CGameObject::starFn2() {
/*------------------------------------------------------------------------*/
void CGameObject::startTalking(const CString &npcName, uint id, CViewItem *view) {
- CTrueTalkNPC *npc = dynamic_cast<CTrueTalkNPC *>(getRoot()->findByName(npcName));
+ CTrueTalkNPC *npc = static_cast<CTrueTalkNPC *>(getRoot()->findByName(npcName));
startTalking(npc, id, view);
}
diff --git a/engines/titanic/core/project_item.cpp b/engines/titanic/core/project_item.cpp
index df48bad501..76293233b0 100644
--- a/engines/titanic/core/project_item.cpp
+++ b/engines/titanic/core/project_item.cpp
@@ -85,7 +85,7 @@ void CProjectItem::buildFilesList() {
CTreeItem *treeItem = getFirstChild();
while (treeItem) {
if (treeItem->isFileItem()) {
- CString name = dynamic_cast<CFileItem *>(treeItem)->getFilename();
+ CString name = static_cast<CFileItem *>(treeItem)->getFilename();
_files.add()->_name = name;
}