Browse Source

Merge pull request #10179 from marcelofg55/master

Fix crash when running a game with the profiler enabled
Rémi Verschelde 8 years ago
parent
commit
dbece391a8
1 changed files with 2 additions and 2 deletions
  1. 2 2
      modules/nativescript/nativescript.cpp

+ 2 - 2
modules/nativescript/nativescript.cpp

@@ -972,11 +972,11 @@ void NativeScriptLanguage::profiling_stop() {
 }
 
 int NativeScriptLanguage::profiling_get_accumulated_data(ProfilingInfo *p_info_arr, int p_info_max) {
-	return -1;
+	return 0;
 }
 
 int NativeScriptLanguage::profiling_get_frame_data(ProfilingInfo *p_info_arr, int p_info_max) {
-	return -1;
+	return 0;
 }
 
 #ifndef NO_THREADS