mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-06 06:32:56 +01:00
Fix gcc / clang builds
This commit is contained in:
@@ -109,7 +109,7 @@ void InputManager::HandleViewScrolling()
|
||||
|
||||
// Shortcut scrolling
|
||||
auto mainWindow = window_get_main();
|
||||
if (mainWindow != nullptr && _viewScroll.x != 0 || _viewScroll.y != 0)
|
||||
if (mainWindow != nullptr && (_viewScroll.x != 0 || _viewScroll.y != 0))
|
||||
{
|
||||
window_unfollow_sprite(mainWindow);
|
||||
}
|
||||
|
||||
@@ -86,7 +86,7 @@ static uint32_t ParseKey(const std::string_view& text)
|
||||
return 0;
|
||||
}
|
||||
|
||||
size_t FindPlus(std::string_view s, size_t index)
|
||||
static size_t FindPlus(std::string_view s, size_t index)
|
||||
{
|
||||
while (true)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user