Skip to content

Commit

Permalink
Fixed ToolTip index to be one-based again.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lexikos committed Sep 28, 2022
1 parent ef455a2 commit b0fe42a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/script2.cpp
Expand Up @@ -1109,7 +1109,7 @@ bif_impl FResult MsgBox(optl<StrArg> aText, optl<StrArg> aTitle, optl<StrArg> aO

bif_impl FResult ToolTip(optl<StrArg> aText, optl<int> aX, optl<int> aY, optl<int> aIndex, UINT_PTR &aRetVal)
{
int window_index = aIndex.value_or(0);
int window_index = aIndex.value_or(1) - 1;
if (window_index < 0 || window_index >= MAX_TOOLTIPS)
return FR_E_ARG(3);

Expand Down

0 comments on commit b0fe42a

Please sign in to comment.