修复动作的释放问题
This commit is contained in:
parent
c62b81dad8
commit
f2923e95f6
|
|
@ -287,7 +287,7 @@
|
||||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||||
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
<SDLCheck>true</SDLCheck>
|
<SDLCheck>true</SDLCheck>
|
||||||
<DebugInformationFormat>None</DebugInformationFormat>
|
<DebugInformationFormat>EditAndContinue</DebugInformationFormat>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<Link>
|
<Link>
|
||||||
<SubSystem>Console</SubSystem>
|
<SubSystem>Console</SubSystem>
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,7 @@ void ActionManager::__exec()
|
||||||
if (action->isEnding())
|
if (action->isEnding())
|
||||||
{
|
{
|
||||||
// 动作已经结束
|
// 动作已经结束
|
||||||
|
action->autoRelease();
|
||||||
action->release();
|
action->release();
|
||||||
s_vActions.erase(s_vActions.begin() + i);
|
s_vActions.erase(s_vActions.begin() + i);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue