aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/carry/phonograph_cylinder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/titanic/carry/phonograph_cylinder.cpp')
-rw-r--r--engines/titanic/carry/phonograph_cylinder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/titanic/carry/phonograph_cylinder.cpp b/engines/titanic/carry/phonograph_cylinder.cpp
index de0ed0a67c..3dedbc4ac9 100644
--- a/engines/titanic/carry/phonograph_cylinder.cpp
+++ b/engines/titanic/carry/phonograph_cylinder.cpp
@@ -102,7 +102,7 @@ void CPhonographCylinder::load(SimpleFile *file) {
}
bool CPhonographCylinder::UseWithOtherMsg(CUseWithOtherMsg *msg) {
- CPhonograph *phonograph = static_cast<CPhonograph *>(msg->_other);
+ CPhonograph *phonograph = dynamic_cast<CPhonograph *>(msg->_other);
if (phonograph) {
CSetVarMsg varMsg("m_RecordStatus", 1);
return true;