From cda348f8857271a1c66d299d0bb4532cbcbefe44 Mon Sep 17 00:00:00 2001 From: Cameron Cawley Date: Sun, 27 Dec 2020 12:02:44 +0000 Subject: [PATCH] ICB: Fix compilation on AmigaOS 4 --- engines/icb/common/px_scriptengine.cpp | 2 +- engines/icb/set_pc.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/engines/icb/common/px_scriptengine.cpp b/engines/icb/common/px_scriptengine.cpp index f0fbd793248..93863e8d7d5 100644 --- a/engines/icb/common/px_scriptengine.cpp +++ b/engines/icb/common/px_scriptengine.cpp @@ -42,7 +42,7 @@ CpxGlobalScriptVariables g_globalScriptVariables; // Information for the script program stack #define STACK_SIZE 10 // The size of the stack -int stack[STACK_SIZE]; // The current stack +int32 stack[STACK_SIZE]; // The current stack int stackPointer = 0; // Position within stack #define _SCRIPT_ENGINE_ERROR(mess) Fatal_error("Script engine error\nObject %s\nScript %s\nMessage %s", object->GetName(), scriptSourceName, mess) diff --git a/engines/icb/set_pc.cpp b/engines/icb/set_pc.cpp index 3fd7130cc7c..2ddc51bdc17 100644 --- a/engines/icb/set_pc.cpp +++ b/engines/icb/set_pc.cpp @@ -708,7 +708,7 @@ void _set::Init_base_bitmap_buffers() { decoder.ReadImage(ptr, bg_buffer_id); // find the start of the weather data - int32 *weatherPtr = (int *)(bgPtr + shadowTable[1]); + int32 *weatherPtr = (int32 *)(bgPtr + shadowTable[1]); InitWeather(*(weatherPtr), *(weatherPtr + 1), *(weatherPtr + 2), *(weatherPtr + 3), *(weatherPtr + 4), *(weatherPtr + 5));