Fix crash when using C# script that inherits from C++ script

This commit is contained in:
Wojtek Figat
2021-04-20 11:47:21 +02:00
parent 1eacb36256
commit 5b31a8222c

View File

@@ -178,7 +178,6 @@ void Script::SetupType()
{
// Enable tick functions based on the method overriden in C# or Visual Script
ScriptingTypeHandle typeHandle = GetTypeHandle();
_tickUpdate = _tickLateUpdate = _tickFixedUpdate = 0;
while (typeHandle != Script::TypeInitializer)
{
auto& type = typeHandle.GetType();