1
0
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:
Ted John
2020-12-16 22:37:35 +00:00
parent afc548c5a7
commit 900f3cd92b
2 changed files with 2 additions and 2 deletions

View File

@@ -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);
}

View File

@@ -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)
{