Skip to content

Commit

Permalink
GAME: Fix condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Saverio976 committed Nov 1, 2023
1 parent 8a85099 commit d2a0478
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Game/ResourcesManager.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include "ResourcesManager.hpp"
#include "boost/filesystem.hpp"

enum class JsonType {
enum class JsonType : std::size_t {
DEFAULT_PLAYER = 0,
DEFAULT_ENEMY,
TERMINATORBOSS,
Expand All @@ -27,7 +27,7 @@ class ResourcesManager {
public:
static std::string getPathByJsonType(JsonType type)
{
if (paths.size() >= static_cast<std::size_t>(type)) {
if (paths.size() <= static_cast<std::size_t>(type)) {
return "";
}
return ResourcesManager::convertPath(paths[static_cast<std::size_t>(type)]);
Expand Down

0 comments on commit d2a0478

Please sign in to comment.