1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2026-01-04 11:13:07 +00:00

Replace C-style cast with C++ cast.

This commit is contained in:
Andrew Lanzone 2025-07-14 17:25:57 -07:00
parent a296fa2b40
commit b8381f6e62

View file

@ -913,7 +913,7 @@ namespace
{
// Scroll through the list of quests or topics
if (mOptionsMode && (mQuestMode || mTopicsMode))
setControllerFocusedQuest(std::max(int(mSelectedQuest) - 5, 0));
setControllerFocusedQuest(std::max(static_cast<int>(mSelectedQuest) - 5, 0));
// Page through the journal
else if (!mOptionsMode)
notifyPrevPage(getWidget<MyGUI::Widget>(PrevPageBTN));