fix: shooting gallery bugs (#1347)

fix: reset some more vars

Co-authored-by: Aaron Kimbre <aronwk.aaron@gmail.com>
This commit is contained in:
David Markowitz
2023-12-23 09:50:14 -08:00
committed by GitHub
parent 6b9798595e
commit 5e9355b1ff
5 changed files with 15 additions and 4 deletions

View File

@@ -166,7 +166,9 @@ void Entity::Initialize() {
if (!groupIDs.empty()) {
m_Groups = GeneralUtils::SplitString(groupIDs, ';');
m_Groups.erase(m_Groups.end() - 1);
if (!m_Groups.empty()) {
if (m_Groups.back().empty()) m_Groups.erase(m_Groups.end() - 1);
}
}
/**