Prevent double retrieval after accidental double activation

This commit is contained in:
Eddoursul 2022-08-23 00:05:21 +02:00
parent 40b946d83e
commit d7058764d4
2 changed files with 3 additions and 3 deletions

View File

@ -163,8 +163,6 @@ inline void ReturnSupplies()
if (!bSuppliesFetched) { if (!bSuppliesFetched) {
return; return;
} }
bSuppliesFetched = false;
if (GetSettings().at("ShowReturningNotification")) { if (GetSettings().at("ShowReturningNotification")) {
RE::DebugNotification("Returning supplies..."); RE::DebugNotification("Returning supplies...");
@ -237,11 +235,13 @@ inline void ReturnSupplies()
} }
}); });
}).detach(); }).detach();
bSuppliesFetched = false;
} }
inline bool FetchSupplies(RE::TESFurniture* a_furn) inline bool FetchSupplies(RE::TESFurniture* a_furn)
{ {
if (!a_furn) { if (!a_furn || bSuppliesFetched) {
return false; return false;
} }