aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/carry/bridge_piece.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/titanic/carry/bridge_piece.cpp')
-rw-r--r--engines/titanic/carry/bridge_piece.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/titanic/carry/bridge_piece.cpp b/engines/titanic/carry/bridge_piece.cpp
index 6a22df3243..a2cb23add6 100644
--- a/engines/titanic/carry/bridge_piece.cpp
+++ b/engines/titanic/carry/bridge_piece.cpp
@@ -52,7 +52,7 @@ void CBridgePiece::load(SimpleFile *file) {
}
bool CBridgePiece::UseWithOtherMsg(CUseWithOtherMsg *msg) {
- CShipSetting *shipSetting = static_cast<CShipSetting *>(msg->_other);
+ CShipSetting *shipSetting = dynamic_cast<CShipSetting *>(msg->_other);
if (!shipSetting) {
return CCarry::UseWithOtherMsg(msg);
} else if (shipSetting->_itemName != "NULL") {