mirror of https://github.com/AxioDL/metaforce.git
CStateManager: Fix seek again (I tested it this time)
This commit is contained in:
parent
764432882c
commit
2185dc30f1
|
@ -1379,7 +1379,7 @@ std::pair<TEditorId, TUniqueId> CStateManager::LoadScriptObject(TAreaId aid, ESc
|
||||||
if (error || ent == nullptr) {
|
if (error || ent == nullptr) {
|
||||||
in.seek(startPos, athena::SeekOrigin::Begin);
|
in.seek(startPos, athena::SeekOrigin::Begin);
|
||||||
std::string name = HashInstanceName(in);
|
std::string name = HashInstanceName(in);
|
||||||
in.seek(length, athena::SeekOrigin::Current);
|
in.seek(startPos + length, athena::SeekOrigin::Begin);
|
||||||
LogModule.report(logvisor::Error, FMT_STRING("Script load error while loading {}, name: {}"),
|
LogModule.report(logvisor::Error, FMT_STRING("Script load error while loading {}, name: {}"),
|
||||||
ScriptObjectTypeToStr(type), name);
|
ScriptObjectTypeToStr(type), name);
|
||||||
return {kInvalidEditorId, kInvalidUniqueId};
|
return {kInvalidEditorId, kInvalidUniqueId};
|
||||||
|
|
Loading…
Reference in New Issue