From 4290fef8d616785ee8efe0b6ae5e0d5b7f6e5caa Mon Sep 17 00:00:00 2001 From: powerof3 <32599957+powerof3@users.noreply.github.com> Date: Sat, 21 Jan 2023 08:55:12 +0530 Subject: [PATCH] Add empty check --- SPID/include/Distribute.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/SPID/include/Distribute.h b/SPID/include/Distribute.h index c6f25d7..b11914c 100644 --- a/SPID/include/Distribute.h +++ b/SPID/include/Distribute.h @@ -185,7 +185,9 @@ namespace Distribute if (!collectedForms.empty()) { a_callback(collectedForms); - PCLevelMult::Manager::GetSingleton()->InsertDistributedEntry(a_input, Form::FORMTYPE, collectedLeveledFormIDs); + if (!collectedLeveledFormIDs.empty()) { + PCLevelMult::Manager::GetSingleton()->InsertDistributedEntry(a_input, Form::FORMTYPE, collectedLeveledFormIDs); + } } }