From 366c3db7fe1b50852df5deebe8cbcec3cacc0bc6 Mon Sep 17 00:00:00 2001 From: Aaron Kimbrell Date: Sun, 23 Oct 2022 21:54:59 -0500 Subject: [PATCH] fix reading respawn for older maps (#784) --- dZoneManager/Level.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dZoneManager/Level.cpp b/dZoneManager/Level.cpp index ebfca4cc..f12adc56 100644 --- a/dZoneManager/Level.cpp +++ b/dZoneManager/Level.cpp @@ -266,7 +266,7 @@ void Level::ReadSceneObjectDataChunk(std::ifstream& file, Header& header) { spawnInfo.respawnTime = std::stof(data->GetValueAsString()); } else if (data->GetValueType() == eLDFType::LDF_TYPE_U32) // Ints are in ms? { - spawnInfo.respawnTime = std::stoi(data->GetValueAsString()) / 1000; + spawnInfo.respawnTime = std::stoul(data->GetValueAsString()) / 1000; } } if (data->GetKey() == u"spawnsGroupOnSmash") {