1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-26 03:52:01 +02:00

Update lib/mapObjectConstructors/AObjectTypeHandler.cpp

This commit is contained in:
Ivan Savenko 2023-12-07 22:48:51 +02:00 committed by GitHub
parent c316087950
commit 500f945222
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -97,16 +97,8 @@ void AObjectTypeHandler::init(const JsonNode & input)
aiValue = static_cast<std::optional<si32>>(input["aiValue"].Integer());
// TODO: Define properties, move them to actual object instance
if(input["blockVisit"].isNull())
blockVisit = false;
else
blockVisit = input["blockVisit"].Bool();
if(input["removable"].isNull())
removable = false;
else
removable = input["removable"].Bool();
blockVisit = input["blockVisit"].Bool();
removable = input["removable"].Bool();
battlefield = BattleField::NONE;