bugfix for unprovided subtype
This commit is contained in:
parent
e32baee284
commit
5bb27c000c
@ -232,6 +232,11 @@ do
|
|||||||
return
|
return
|
||||||
end
|
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")
|
-- this is used to load the correct state for additional resource tokens (e.g. "Ammo")
|
||||||
local callback = nil
|
local callback = nil
|
||||||
local stateID = stateTable[string.lower(subType)]
|
local stateID = stateTable[string.lower(subType)]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user