Fix SoundAliasCustom loading for IW4 actually being loaded like const char**

This commit is contained in:
Jan 2020-10-10 11:46:43 +02:00
parent c952aacda1
commit af0dc46b31
2 changed files with 11 additions and 2 deletions

View File

@ -568,9 +568,13 @@ reorder:
// SndAliasCustom // SndAliasCustom
use SndAliasCustom; use SndAliasCustom;
set string soundName; set count name 1;
set reusable name;
set condition sound never; set condition sound never;
// snd_alias_list_name
set string snd_alias_list_name::soundName;
// ========================================= // =========================================
// MenuList // MenuList
// ========================================= // =========================================

View File

@ -2278,9 +2278,14 @@ namespace IW4
MISSILE_GUIDANCE_COUNT MISSILE_GUIDANCE_COUNT
}; };
union SndAliasCustom struct snd_alias_list_name
{ {
const char* soundName; const char* soundName;
};
union SndAliasCustom
{
snd_alias_list_name* name;
snd_alias_list_t* sound; snd_alias_list_t* sound;
}; };