Fix: no ScriptEvent sub class should export constructors to scripts

This commit is contained in:
Rubidium 2023-01-25 21:41:58 +01:00 committed by rubidium42
parent 2d0c1ffdb7
commit 042f90a9dd
1 changed files with 1 additions and 1 deletions

View File

@ -342,7 +342,7 @@ foreach(LINE IN LISTS SOURCE_LINES)
else()
string(APPEND SQUIRREL_EXPORT "\n SQ${API_CLS}.PreRegister(engine, \"${API_SUPER_CLS}\");")
endif()
if(NOT "${SUPER_CLS}" STREQUAL "ScriptEvent")
if(NOT "${SUPER_CLS}" MATCHES "^ScriptEvent")
if("${CLS_PARAM_2}" STREQUAL "v")
string(APPEND SQUIRREL_EXPORT "\n SQ${API_CLS}.AddSQAdvancedConstructor(engine);")
else()