Always use ResourcePath for referencing images and animations

This commit is contained in:
Ivan Savenko committed 2023-09-04 18:22:34 +03:00
1 parent f79492e5b0
commit 823ffa7a07
201 files changed
+1390 -1362

No files matched your search

+2 -2
View File
@@ -12,14 +12,14 @@
#include "CObjectHandler.h"
#include "CGObjectInstance.h"
#include "../filesystem/ResourceID.h"
#include "../filesystem/ResourcePath.h"
VCMI_LIB_NAMESPACE_BEGIN
CObjectHandler::CObjectHandler()
{
logGlobal->trace("\t\tReading resources prices ");
const JsonNode config2(ResourceID("config/resources.json"));
const JsonNode config2(ResourcePath("config/resources.json"));
for(const JsonNode &price : config2["resources_prices"].Vector())
{
resVals.push_back(static_cast<ui32>(price.Float()));