Skip to content

Commit

Permalink
Don't return if wait time is not greater than 0.0
Browse files Browse the repository at this point in the history
Signed-off-by: Vladimir Ulrich <[email protected]>
  • Loading branch information
Wedmer committed Feb 9, 2025
1 parent e08e606 commit 5c138e8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,8 @@ VarValue PapyrusUtility::WaitHelper(VarValue& self, const char* funcName,
throw std::runtime_error(std::string(funcName) +
" requires at least 1 argument");
double seconds = static_cast<double>(arguments[0].CastToFloat());
if (0.0 >= seconds)
return VarValue::None();
if (0.0 > seconds)
seconds = 0.0;
auto worldState = compatibilityPolicy->GetWorldState();
if (!worldState) {
throw std::runtime_error("worldState not found");
Expand Down

0 comments on commit 5c138e8

Please sign in to comment.