From 077ed98c92708a3af107a0cb38fbb7dbf073fe83 Mon Sep 17 00:00:00 2001 From: Marcelo Fernandez Date: Tue, 8 Aug 2017 18:02:45 -0300 Subject: Fix crash when running a game with the profiler enabled --- modules/nativescript/nativescript.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/nativescript/nativescript.cpp') diff --git a/modules/nativescript/nativescript.cpp b/modules/nativescript/nativescript.cpp index f00917bcea..9ad5c2abdc 100644 --- a/modules/nativescript/nativescript.cpp +++ b/modules/nativescript/nativescript.cpp @@ -974,11 +974,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 -- cgit v1.2.3