Remove a misleading MutexAutoLock in l_to_table

The temporary is immediately destructed, so the mutex isn't locked
after the line.
Removed the lock, because the Settings member-functions used by
push_settings_table lock the mutex and are thread-safe, but would
cause a dead-lock.
This commit is contained in:
Desour 2023-05-27 07:37:05 +02:00 committed by sfan5
parent 252c79d53a
commit d9f478cbfb

@ -332,7 +332,6 @@ int LuaSettings::l_to_table(lua_State* L)
NO_MAP_LOCK_REQUIRED;
LuaSettings* o = checkObject<LuaSettings>(L, 1);
MutexAutoLock(o->m_settings->m_mutex);
push_settings_table(L, o->m_settings);
return 1;
}