g_fiber_pool twice (#348)

This commit is contained in:
Aure7138 2022-07-18 04:47:32 +08:00 committed by GitHub
parent bf87449d35
commit ea7e189a20

View File

@ -40,7 +40,6 @@ namespace big
static char model[32]; static char model[32];
components::input_text_with_hint("Model Name###player_ped_model", "Player Model Name", model, sizeof(model), ImGuiInputTextFlags_EnterReturnsTrue, [] { components::input_text_with_hint("Model Name###player_ped_model", "Player Model Name", model, sizeof(model), ImGuiInputTextFlags_EnterReturnsTrue, [] {
g_fiber_pool->queue_job([] {
const Hash hash = rage::joaat(model); const Hash hash = rage::joaat(model);
for (uint8_t i = 0; !STREAMING::HAS_MODEL_LOADED(hash) && i < 100; i++) for (uint8_t i = 0; !STREAMING::HAS_MODEL_LOADED(hash) && i < 100; i++)
@ -61,7 +60,6 @@ namespace big
script::get_current()->yield(); script::get_current()->yield();
STREAMING::SET_MODEL_AS_NO_LONGER_NEEDED(hash); STREAMING::SET_MODEL_AS_NO_LONGER_NEEDED(hash);
}); });
});
ImGui::Separator(); ImGui::Separator();