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