Do not make inventory_items_animations setting static thread_local

This removes restart requirement when toggling the setting after the first play/run.
This commit is contained in:
Muhammad Rifqi Priyo Susanto 2024-04-22 00:00:00 +07:00
parent eb432d3da0
commit c223f0dd31
1 changed files with 1 additions and 2 deletions

View File

@ -1046,8 +1046,7 @@ void drawItemStack(
return;
}
const static thread_local bool enable_animations =
g_settings->getBool("inventory_items_animations");
const bool enable_animations = g_settings->getBool("inventory_items_animations");
auto *idef = client->idef();
const ItemDefinition &def = item.getDefinition(idef);