mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
Merge pull request #52668 from qarmin/cppcheck_servers_physics
Initialize variables in servers/physics
This commit is contained in:
@@ -56,19 +56,19 @@ class PhysicsServer2DWrapMT : public PhysicsServer2D {
|
||||
SafeFlag exit;
|
||||
Thread thread;
|
||||
SafeFlag step_thread_up;
|
||||
bool create_thread;
|
||||
bool create_thread = false;
|
||||
|
||||
Semaphore step_sem;
|
||||
int step_pending;
|
||||
int step_pending = 0;
|
||||
void thread_step(real_t p_delta);
|
||||
void thread_flush();
|
||||
|
||||
void thread_exit();
|
||||
|
||||
bool first_frame;
|
||||
bool first_frame = true;
|
||||
|
||||
Mutex alloc_mutex;
|
||||
int pool_max_size;
|
||||
int pool_max_size = 0;
|
||||
|
||||
public:
|
||||
#define ServerName PhysicsServer2D
|
||||
|
||||
Reference in New Issue
Block a user