1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Fix loading of artifact ID for "transport item" victory condition

This commit is contained in:
Ivan Savenko 2023-12-03 19:45:18 +02:00
parent a1f4748bbc
commit cd5d6a8f77

View File

@ -83,7 +83,10 @@ ArtifactID MapReaderH3M::readArtifact()
ArtifactID MapReaderH3M::readArtifact8()
{
ArtifactID result(reader->readInt8());
ArtifactID result(reader->readUInt8());
if(result.getNum() == 0xff)
return ArtifactID::NONE;
if (result.getNum() < features.artifactsCount)
return remapIdentifier(result);