From 369829164d0dbd1ffe6c42bbe1415e2a84746bf9 Mon Sep 17 00:00:00 2001 From: obligaron Date: Sun, 29 Aug 2021 13:00:35 +0200 Subject: [PATCH] DebugCmdResetLevel: Use stoul for parameter seed parsing --- Source/debug.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/debug.cpp b/Source/debug.cpp index 2c531f58d..72c6d113d 100644 --- a/Source/debug.cpp +++ b/Source/debug.cpp @@ -268,7 +268,7 @@ std::string DebugCmdResetLevel(const std::string_view parameter) myPlayer._pLvlVisited[level] = false; if (std::getline(paramsStream, singleParameter, ' ')) { - auto seed = atoi(singleParameter.c_str()); + uint32_t seed = static_cast(std::stoul(singleParameter)); glSeedTbl[level] = seed; }