bugfix for unprovided subtype

This commit is contained in:
Chr1Z93 2023-07-20 23:16:15 +02:00
parent e32baee284
commit 5bb27c000c

View File

@ -232,6 +232,11 @@ do
return
end
-- handling for not provided subtype (for example when spawning from custom data helpers)
if subType == nil then
subType = ""
end
-- this is used to load the correct state for additional resource tokens (e.g. "Ammo")
local callback = nil
local stateID = stateTable[string.lower(subType)]