aboutsummaryrefslogtreecommitdiff
path: root/engines/tsage
diff options
context:
space:
mode:
authorColin Snover2017-11-20 15:31:52 -0600
committerColin Snover2017-11-20 18:43:18 -0600
commit7fc9e381b8069335ec85de481fa843d57f951218 (patch)
tree2d3a4575c4e9f21b9a0f6ad9c6de5613426aede7 /engines/tsage
parentb20670e5645c06c695ad06d6da9dcf7d9e5b0324 (diff)
downloadscummvm-rg350-7fc9e381b8069335ec85de481fa843d57f951218.tar.gz
scummvm-rg350-7fc9e381b8069335ec85de481fa843d57f951218.tar.bz2
scummvm-rg350-7fc9e381b8069335ec85de481fa843d57f951218.zip
TSAGE: Fix invalid C-style casts to unrelated classes
Diffstat (limited to 'engines/tsage')
-rw-r--r--engines/tsage/core.cpp2
-rw-r--r--engines/tsage/user_interface.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/tsage/core.cpp b/engines/tsage/core.cpp
index a3ed3abb5b..247070d59c 100644
--- a/engines/tsage/core.cpp
+++ b/engines/tsage/core.cpp
@@ -93,7 +93,7 @@ InvObject::InvObject(int strip, int frame) {
void InvObject::setCursor() {
if (g_vm->getGameID() != GType_Ringworld) {
// All other games
- _cursorId = (CursorType)BF_GLOBALS._inventory->indexOf(this);
+ _cursorId = (CursorType)g_globals->_inventory->indexOf(this);
g_globals->_events.setCursor(_cursorId);
} else {
// Ringworld cursor handling
diff --git a/engines/tsage/user_interface.cpp b/engines/tsage/user_interface.cpp
index fffc0dc16c..d5e40cba83 100644
--- a/engines/tsage/user_interface.cpp
+++ b/engines/tsage/user_interface.cpp
@@ -205,7 +205,7 @@ void UIInventoryScroll::process(Event &event) {
toggle(true);
// Wait for the mouse to be released
- BF_GLOBALS._events.waitForPress(EVENT_BUTTON_UP);
+ g_globals->_events.waitForPress(EVENT_BUTTON_UP);
// Restore unselected version
toggle(false);