Skip to content

Commit

Permalink
fix: implicit cast crash
Browse files Browse the repository at this point in the history
  • Loading branch information
RobbeBryssinck committed May 25, 2022
1 parent a7fc37b commit b9247f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Code/components/console/ConsoleRegistry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ void ConsoleRegistry::RegisterNatives()

RegisterCommand<const char*, const char*>(
"set", R"(Set a setting e.g "set mysetting true")", [&](ArgStack& aStack) {
const std::string variableName{aStack.Pop<std::string>()};
const TiltedPhoques::String variableName{aStack.Pop<TiltedPhoques::String>()};
if (variableName.empty())
{
m_out->error("set <varname> <state>");
Expand All @@ -123,7 +123,7 @@ void ConsoleRegistry::RegisterNatives()
return;
}

const auto value{aStack.Pop<std::string>()};
const auto value{aStack.Pop<TiltedPhoques::String>()};
switch (pSetting->type)
{
case SettingBase::Type::kBoolean: {
Expand Down

0 comments on commit b9247f6

Please sign in to comment.