瀏覽代碼

Merge pull request #110329 from beicause/jolt-orphan-string-name

JoltPhysics: Fix orphan StringName
Thaddeus Crews 1 月之前
父節點
當前提交
00699ec29e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      modules/jolt_physics/spaces/jolt_job_system.cpp

+ 1 - 1
modules/jolt_physics/spaces/jolt_job_system.cpp

@@ -176,7 +176,7 @@ void JoltJobSystem::post_step() {
 #ifdef DEBUG_ENABLED
 
 void JoltJobSystem::flush_timings() {
-	static const StringName profiler_name("servers");
+	const StringName profiler_name = SNAME("servers");
 
 	EngineDebugger *engine_debugger = EngineDebugger::get_singleton();