mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
Merge pull request #852 from Ignatz-HeMan/patch-11
Fix for undefined var on environment Animals
This commit is contained in:
commit
f8297f4d86
@ -33,8 +33,10 @@ _selectedConfig = "";
|
|||||||
if (_object isEqualType objNull && !(isNull _object)) then {
|
if (_object isEqualType objNull && !(isNull _object)) then {
|
||||||
if !(_object isKindOf "All") then {
|
if !(_object isKindOf "All") then {
|
||||||
(getModelInfo _object) params [["_modelName",""]];
|
(getModelInfo _object) params [["_modelName",""]];
|
||||||
|
if (!isnil "_modelName") then {
|
||||||
// replace spaces and periods with underscores
|
// replace spaces and periods with underscores
|
||||||
_selectedConfig = (_modelName splitString " .") joinString "_";
|
_selectedConfig = (_modelName splitString " .") joinString "_";
|
||||||
|
};
|
||||||
} else {
|
} else {
|
||||||
_selectedConfig = typeOf _object;
|
_selectedConfig = typeOf _object;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user