1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-22 15:06:45 +00:00

Revert "Prevent crashing if max_threads is zero."

This reverts commit a1788e09bf.
This commit is contained in:
WinnerWind
2025-08-27 09:02:34 +05:30
parent a1788e09bf
commit 976016b701
2 changed files with 2 additions and 2 deletions

View File

@@ -780,7 +780,7 @@ void WorkerThreadPool::init(int p_thread_count, float p_low_priority_task_ratio)
runlevel = RUNLEVEL_NORMAL;
if (p_thread_count <= 0) {
if (p_thread_count < 0) {
p_thread_count = OS::get_singleton()->get_default_thread_pool_size();
}