Skip to content

Commit

Permalink
Fix last comment about float implementation.
Browse files Browse the repository at this point in the history
  • Loading branch information
royfalk committed Feb 23, 2025
1 parent c23ccbd commit 26beb10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions engine/src/resource/resource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ T _convert(const std::string input, const T modifier);
template<>
float _convert<float>(const std::string input, const float modifier) {
try {
return std::stod(input) * modifier;
return std::stof(input) * modifier;
} catch(...) {
return 0.0;
return 0.0f;
}
}

Expand Down

0 comments on commit 26beb10

Please sign in to comment.