From 7fc9e381b8069335ec85de481fa843d57f951218 Mon Sep 17 00:00:00 2001 From: Colin Snover Date: Mon, 20 Nov 2017 15:31:52 -0600 Subject: TSAGE: Fix invalid C-style casts to unrelated classes --- engines/tsage/core.cpp | 2 +- engines/tsage/user_interface.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'engines') 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); -- cgit v1.2.3