diff --git a/DataSpec/DNAMP1/MLVL.cpp b/DataSpec/DNAMP1/MLVL.cpp index 737c81458..fea2247c6 100644 --- a/DataSpec/DNAMP1/MLVL.cpp +++ b/DataSpec/DNAMP1/MLVL.cpp @@ -221,9 +221,9 @@ bool MLVL::Cook(const hecl::ProjectPath& outPath, const hecl::ProjectPath& inPat else if (obj->type == 0x3A) { SpecialFunction& specialFunc = static_cast(*obj); - if (specialFunc.type == ESpecialFunctionType::CinematicSkip) + if (specialFunc.function == ESpecialFunctionType::CinematicSkip) savw.skippableCutscenes.push_back(specialFunc.id); - else if (specialFunc.type == ESpecialFunctionType::ScriptLayerController) + else if (specialFunc.function == ESpecialFunctionType::ScriptLayerController) { savw.layers.emplace_back(); SAVWCommon::Layer& layer = savw.layers.back(); diff --git a/DataSpec/DNAMP1/ScriptObjects/SpecialFunction.hpp b/DataSpec/DNAMP1/ScriptObjects/SpecialFunction.hpp index 5d9567348..33de89b1d 100644 --- a/DataSpec/DNAMP1/ScriptObjects/SpecialFunction.hpp +++ b/DataSpec/DNAMP1/ScriptObjects/SpecialFunction.hpp @@ -15,7 +15,7 @@ struct SpecialFunction : IScriptObject String<-1> name; Value location; Value orientation; - Value type; + Value function; String<-1> unknown1; Value unknown2; Value unknown3;