bugfix for unprovided subtype
This commit is contained in:
parent
e32baee284
commit
5bb27c000c
@ -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)]
|
||||
|
Loading…
x
Reference in New Issue
Block a user