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

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