Static variables in scripts are now reset when leaving play mode #351

Merged
Pycorax merged 7 commits from SP3-6-CSharpStaticReset into main 2023-02-20 11:12:09 +08:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit 3a4288d4bc - Show all commits

View File

@ -365,7 +365,7 @@ namespace SHADE
SHEventHandle SHScriptEngine::onUIElementClicked(SHEventPtr eventPtr)
{
auto eventData = reinterpret_cast<const SHEventSpec<SHButtonClickEvent>*>(eventPtr.get());
csUIElementOnRemoved(eventData->data->EID);
csUIElementOnClicked(eventData->data->EID);
return eventData->handle;
}