From 364c20a771546e066baf1e7401b79d65c335a58d Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Tue, 5 Mar 2019 19:48:02 +0100 Subject: [PATCH] Correct parameter number. --- TracyLua.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TracyLua.hpp b/TracyLua.hpp index cd572a32..0a034532 100644 --- a/TracyLua.hpp +++ b/TracyLua.hpp @@ -311,7 +311,7 @@ static inline int LuaZoneBeginNS( lua_State* L ) #ifdef TRACY_CALLSTACK const uint32_t depth = TRACY_CALLSTACK; #else - const auto depth = uint32_t( lua_tointeger( L, 1 ) ); + const auto depth = uint32_t( lua_tointeger( L, 2 ) ); #endif SendLuaCallstack( L, depth );