Prevent double retrieval after accidental double activation
This commit is contained in:
parent
40b946d83e
commit
d7058764d4
Binary file not shown.
@ -164,8 +164,6 @@ inline void ReturnSupplies()
|
|||||||
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user