mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-06-09 00:04:22 +00:00
fix: security vulnerabilities
Tested that all functions related to the touched files work will test sqlite on a CI build
This commit is contained in:
@@ -36,13 +36,14 @@ void AmSkullkinDrill::OnStartup(Entity* self) {
|
||||
Entity* AmSkullkinDrill::GetStandObj(Entity* self) {
|
||||
const auto& myGroup = self->GetGroups();
|
||||
|
||||
if (myGroup.empty()) {
|
||||
if (myGroup.empty() || myGroup[0].empty()) {
|
||||
return nullptr;
|
||||
}
|
||||
const auto& group = myGroup[0];
|
||||
|
||||
std::string groupName = "Drill_Stand_";
|
||||
|
||||
groupName.push_back(myGroup[0][myGroup[0].size() - 1]);
|
||||
groupName.push_back(group.back());
|
||||
|
||||
const auto standObjs = Game::entityManager->GetEntitiesInGroup(groupName);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user