Skip to content

Commit

Permalink
Remove leading slash (#399)
Browse files Browse the repository at this point in the history
Reverts a part of #355 because of recent discovery that files included in addons must not have a leading slash
  • Loading branch information
rekterakathom authored Oct 14, 2024
1 parent 1a0a0cc commit 62abf80
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions addons/main/functions/fnc_doCallout.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ if (isNil "_cachedSounds") then {
if (_sound select [0, 1] != "\") then {
_sound = (getArray (configFile >> "CfgVoice" >> _speaker >> "directories") select 0) + _sound;
};
if (_sound select [0, 1] == "\") then {
_sound = _sound select [1];
};

if (!_hasFileEnding && {!fileExists _sound}) then {
{
Expand Down

0 comments on commit 62abf80

Please sign in to comment.