Skip to content

Commit

Permalink
ChaosMod/LuaScripts: Explicit return types for GetRandomInt and GetRa…
Browse files Browse the repository at this point in the history
…ndomFloat
  • Loading branch information
pongo1231 committed Jan 18, 2025
1 parent be8e461 commit 5542116
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ChaosMod/Components/LuaScripts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ LuaScripts::ParseScriptRaw(std::string scriptName, const std::string &script, Pa
E("DisplayHelpText", DisplayHelpText),

E("GetRandomInt",
[](int lower, int upper)
[](int lower, int upper) -> int
{
if (lower > upper)
return 0;
Expand All @@ -638,7 +638,7 @@ LuaScripts::ParseScriptRaw(std::string scriptName, const std::string &script, Pa
}),

E("GetRandomFloat",
[](float lower, float upper)
[](float lower, float upper) -> float
{
if (lower > upper)
return 0.f;
Expand Down

0 comments on commit 5542116

Please sign in to comment.