diff --git a/Sources/epoch_code/compile/functions/EPOCH_worldObjectType.sqf b/Sources/epoch_code/compile/functions/EPOCH_worldObjectType.sqf index 239fda25..57b5f6cf 100644 --- a/Sources/epoch_code/compile/functions/EPOCH_worldObjectType.sqf +++ b/Sources/epoch_code/compile/functions/EPOCH_worldObjectType.sqf @@ -33,8 +33,10 @@ _selectedConfig = ""; if (_object isEqualType objNull && !(isNull _object)) then { if !(_object isKindOf "All") then { (getModelInfo _object) params [["_modelName",""]]; - // replace spaces and periods with underscores - _selectedConfig = (_modelName splitString " .") joinString "_"; + if (!isnil "_modelName") then { + // replace spaces and periods with underscores + _selectedConfig = (_modelName splitString " .") joinString "_"; + }; } else { _selectedConfig = typeOf _object; };