2
0
Эх сурвалжийг харах

Fixed crash on release builds due to missing argument type information

Melissa Geels 3 жил өмнө
parent
commit
d97dc518d3

+ 0 - 8
include/godot_cpp/core/method_bind.hpp

@@ -268,9 +268,7 @@ public:
 
 
 	MethodBindT(void (MB_T::*p_method)(P...)) {
 	MethodBindT(void (MB_T::*p_method)(P...)) {
 		method = p_method;
 		method = p_method;
-#ifdef DEBUG_METHODS_ENABLED
 		generate_argument_types(sizeof...(P));
 		generate_argument_types(sizeof...(P));
-#endif // DEBUG_METHODS_ENABLED
 		set_argument_count(sizeof...(P));
 		set_argument_count(sizeof...(P));
 	}
 	}
 };
 };
@@ -346,9 +344,7 @@ public:
 
 
 	MethodBindTC(void (MB_T::*p_method)(P...) const) {
 	MethodBindTC(void (MB_T::*p_method)(P...) const) {
 		method = p_method;
 		method = p_method;
-#ifdef DEBUG_METHODS_ENABLED
 		generate_argument_types(sizeof...(P));
 		generate_argument_types(sizeof...(P));
-#endif // DEBUG_METHODS_ENABLED
 		set_argument_count(sizeof...(P));
 		set_argument_count(sizeof...(P));
 	}
 	}
 };
 };
@@ -430,9 +426,7 @@ public:
 
 
 	MethodBindTR(R (MB_T::*p_method)(P...)) {
 	MethodBindTR(R (MB_T::*p_method)(P...)) {
 		method = p_method;
 		method = p_method;
-#ifdef DEBUG_METHODS_ENABLED
 		generate_argument_types(sizeof...(P));
 		generate_argument_types(sizeof...(P));
-#endif // DEBUG_METHODS_ENABLED
 		set_argument_count(sizeof...(P));
 		set_argument_count(sizeof...(P));
 		set_return(true);
 		set_return(true);
 	}
 	}
@@ -515,9 +509,7 @@ public:
 
 
 	MethodBindTRC(R (MB_T::*p_method)(P...) const) {
 	MethodBindTRC(R (MB_T::*p_method)(P...) const) {
 		method = p_method;
 		method = p_method;
-#ifdef DEBUG_METHODS_ENABLED
 		generate_argument_types(sizeof...(P));
 		generate_argument_types(sizeof...(P));
-#endif // DEBUG_METHODS_ENABLED
 		set_argument_count(sizeof...(P));
 		set_argument_count(sizeof...(P));
 		set_return(true);
 		set_return(true);
 	}
 	}