GameStateSamples

Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
pappeste
2021-06-17 17:13:16 -07:00
committed by Esteban Papp
parent 150f37cb6b
commit 93384eebe1
@@ -300,7 +300,7 @@ namespace GameStateSamples
// Add all the levels into the UI as buttons
UiDynamicLayoutBus::Event(dynamicLayoutElementId, &UiDynamicLayoutInterface::SetNumChildElements, levelNames.size());
UiDynamicLayoutBus::Event(dynamicLayoutElementId, &UiDynamicLayoutInterface::SetNumChildElements, static_cast<int>(levelNames.size()));
for (int i = 0; i < levelNames.size(); ++i)
{
AZ::IO::PathView level(levelNames[i].c_str());
@@ -334,7 +334,7 @@ namespace GameStateSamples
{
// Get the level name (strip folder names from the path)
const char* levelPath = levelSystem->GetLevelInfo(i)->GetName();
const int levelPathLength = strlen(levelPath);
const int levelPathLength = static_cast<int>(strlen(levelPath));
const char* levelName = levelPath;
for (int j = 0; j < levelPathLength; ++j)
{