Browse Source

Fixing a crash on assembly refresh due to the new way to locating built-in Component methods

BearishSun 9 years ago
parent
commit
174432e174
1 changed files with 9 additions and 0 deletions
  1. 9 0
      Source/SBansheeEngine/Source/BsManagedComponent.cpp

+ 9 - 0
Source/SBansheeEngine/Source/BsManagedComponent.cpp

@@ -147,6 +147,15 @@ namespace BansheeEngine
 			managedClass = MonoManager::instance().findClass(monoClass);
 		}
 
+		mOnInitializedThunk = nullptr;
+		mOnUpdateThunk = nullptr;
+		mOnResetThunk = nullptr;
+		mOnDestroyThunk = nullptr;
+		mOnDisabledThunk = nullptr;
+		mOnEnabledThunk = nullptr;
+		mOnTransformChangedThunk = nullptr;
+		mCalculateBoundsMethod = nullptr;
+
 		while(managedClass != nullptr)
 		{
 			if (mOnInitializedThunk == nullptr)