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:
parent
a1f4748bbc
commit
cd5d6a8f77
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user