Update Database.lua (#2148)

Small fix
This commit is contained in:
Thomas 2024-07-16 08:45:56 +02:00 committed by GitHub
parent 5d6951ae11
commit 04f2f7d34f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1362,7 +1362,7 @@ end
-- @return #DATABASE self
function DATABASE:_RegisterDynamicGroup(Groupname)
local DCSGroup = Group.getByName(Groupname)
if DCSGroup:isExist() then
if DCSGroup and DCSGroup:isExist() then
-- Group name.
local DCSGroupName = DCSGroup:getName()