diff --git a/soh/soh/Enhancements/randomizer/3drando/spoiler_log.cpp b/soh/soh/Enhancements/randomizer/3drando/spoiler_log.cpp index cc6f996f0..b5aaf1aeb 100644 --- a/soh/soh/Enhancements/randomizer/3drando/spoiler_log.cpp +++ b/soh/soh/Enhancements/randomizer/3drando/spoiler_log.cpp @@ -676,13 +676,13 @@ static void WriteAllLocations(int language) { std::string placedItemName; switch (language) { - case 0: - default: - location->GetPlacedItemName().english; - break; - case 2: - location->GetPlacedItemName().french; - break; + case 0: + default: + placedItemName = location->GetPlacedItemName().english; + break; + case 2: + placedItemName = location->GetPlacedItemName().french; + break; } // Eventually check for other things here like fake name