From 83826b1793c7170de3b312c2b7927806d39203d3 Mon Sep 17 00:00:00 2001 From: glx22 Date: Thu, 9 Feb 2023 22:26:02 +0100 Subject: [PATCH] Codechange: Use SQInteger for generic numbers in script_bridgelist --- src/script/api/script_bridgelist.cpp | 4 ++-- src/script/api/script_bridgelist.hpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/script/api/script_bridgelist.cpp b/src/script/api/script_bridgelist.cpp index a81c186edb..bc78e7bf36 100644 --- a/src/script/api/script_bridgelist.cpp +++ b/src/script/api/script_bridgelist.cpp @@ -21,11 +21,11 @@ ScriptBridgeList::ScriptBridgeList() } } -ScriptBridgeList_Length::ScriptBridgeList_Length(uint length) +ScriptBridgeList_Length::ScriptBridgeList_Length(SQInteger length) { for (byte j = 0; j < MAX_BRIDGES; j++) { if (ScriptBridge::IsValidBridge(j)) { - if (length >= (uint)ScriptBridge::GetMinLength(j) && length <= (uint)ScriptBridge::GetMaxLength(j)) this->AddItem(j); + if (length >= ScriptBridge::GetMinLength(j) && length <= ScriptBridge::GetMaxLength(j)) this->AddItem(j); } } } diff --git a/src/script/api/script_bridgelist.hpp b/src/script/api/script_bridgelist.hpp index 78088fe695..17991f41f1 100644 --- a/src/script/api/script_bridgelist.hpp +++ b/src/script/api/script_bridgelist.hpp @@ -32,7 +32,7 @@ public: /** * @param length The length of the bridge you want to build. */ - ScriptBridgeList_Length(uint length); + ScriptBridgeList_Length(SQInteger length); }; #endif /* SCRIPT_BRIDGELIST_HPP */