1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-06 23:26:26 +02:00

Compile fixes

This commit is contained in:
Tomasz Zieliński 2024-04-11 18:38:50 +02:00
parent a356fdaf2a
commit 68bb36f7c7

View File

@ -12,7 +12,7 @@
#include "ObstacleSetHandler.h"
#include "../modding/IdentifierStorage.h"
#include "../constants/stringConstants.h"
#include "../constants/StringConstants.h"
VCMI_LIB_NAMESPACE_BEGIN
@ -294,9 +294,14 @@ std::shared_ptr<ObstacleSet> ObstacleSetHandler::loadFromJson(const std::string
{
int alignment = vstd::find_pos(GameConstants::ALIGNMENT_NAMES, str);
if (alignment == -1)
{
logGlobal->error("Incorrect alignment: ", str);
return EAlignment::ANY;
}
else
{
return static_cast<EAlignment>(alignment);
}
};
if (json["alignment"].isString())