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

One more documentation update iteration

This commit is contained in:
Ivan Savenko
2023-09-26 13:22:36 +03:00
parent 8210a2cafd
commit 0ab766479d
13 changed files with 128 additions and 18 deletions

View File

@ -180,6 +180,9 @@ void BoatInstanceConstructor::initTypeData(const JsonNode & input)
int pos = vstd::find_pos(NPathfindingLayer::names, input["layer"].String());
if(pos != -1)
layer = EPathfindingLayer(pos);
else
logMod->error("Unknown layer %s found in boat!", input["layer"].String());
onboardAssaultAllowed = input["onboardAssaultAllowed"].Bool();
onboardVisitAllowed = input["onboardVisitAllowed"].Bool();
actualAnimation = AnimationPath::fromJson(input["actualAnimation"]);