mirror of https://github.com/OpenTTD/OpenTTD
Fix: no ScriptEvent sub class should export constructors to scripts
parent
1cb459de3f
commit
08ca0746b1
|
@ -342,7 +342,7 @@ foreach(LINE IN LISTS SOURCE_LINES)
|
||||||
else()
|
else()
|
||||||
string(APPEND SQUIRREL_EXPORT "\n SQ${API_CLS}.PreRegister(engine, \"${API_SUPER_CLS}\");")
|
string(APPEND SQUIRREL_EXPORT "\n SQ${API_CLS}.PreRegister(engine, \"${API_SUPER_CLS}\");")
|
||||||
endif()
|
endif()
|
||||||
if(NOT "${SUPER_CLS}" STREQUAL "ScriptEvent")
|
if(NOT "${SUPER_CLS}" MATCHES "^ScriptEvent")
|
||||||
if("${CLS_PARAM_2}" STREQUAL "v")
|
if("${CLS_PARAM_2}" STREQUAL "v")
|
||||||
string(APPEND SQUIRREL_EXPORT "\n SQ${API_CLS}.AddSQAdvancedConstructor(engine);")
|
string(APPEND SQUIRREL_EXPORT "\n SQ${API_CLS}.AddSQAdvancedConstructor(engine);")
|
||||||
else()
|
else()
|
||||||
|
|
Loading…
Reference in New Issue