From e36ddaff48f783f88d53d2947c4729deb4e9e95d Mon Sep 17 00:00:00 2001 From: yyc12345 Date: Thu, 9 Apr 2020 12:16:19 +0800 Subject: [PATCH] fix a field error --- SuperScriptMaterializer/script_export.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/SuperScriptMaterializer/script_export.cpp b/SuperScriptMaterializer/script_export.cpp index 47a851e..43a2d3c 100644 --- a/SuperScriptMaterializer/script_export.cpp +++ b/SuperScriptMaterializer/script_export.cpp @@ -166,11 +166,15 @@ inline void proc_bOut(CKBehaviorIO* cache, database* db, dbDataStructHelper* hel inline void proc_bLink(CKBehaviorLink* cache, database* db, dbDataStructHelper* helper, EXPAND_CK_ID parents) { CKBehaviorIO* io = cache->GetInBehaviorIO(); + CKBehavior* beh = io->GetOwner(); helper->_db_bLink->input = io->GetID(); + helper->_db_bLink->input_obj = beh->GetID(); helper->_db_bLink->input_type = (io->GetType() == CK_BEHAVIORIO_IN ? bLinkInputOutputType_INPUT : bLinkInputOutputType_OUTPUT); helper->_db_bLink->input_index = (io->GetType() == CK_BEHAVIORIO_IN ? io->GetOwner()->GetInputPosition(io) : io->GetOwner()->GetOutputPosition(io)); io = cache->GetOutBehaviorIO(); + beh = io->GetOwner(); helper->_db_bLink->output = io->GetID(); + helper->_db_bLink->output_obj = beh->GetID(); helper->_db_bLink->output_type = (io->GetType() == CK_BEHAVIORIO_IN ? bLinkInputOutputType_INPUT : bLinkInputOutputType_OUTPUT); helper->_db_bLink->output_index = (io->GetType() == CK_BEHAVIORIO_IN ? io->GetOwner()->GetInputPosition(io) : io->GetOwner()->GetOutputPosition(io));