mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Fixed crash in LoopSound when tiki's alias list is NULL
This commit is contained in:
parent
342552c349
commit
3933e63044
1 changed files with 2 additions and 2 deletions
|
@ -5139,7 +5139,7 @@ void ClientGameCommandManager::LoopSound(Event* ev)
|
|||
|
||||
// Get the real sound to play
|
||||
|
||||
if (current_tiki) {
|
||||
if (current_tiki && current_tiki->a->alias_list) {
|
||||
name = cgi.Alias_ListFindRandom((AliasList_t*)current_tiki->a->alias_list,
|
||||
sound_name.c_str(), &soundAlias);
|
||||
}
|
||||
|
@ -5168,7 +5168,7 @@ void CacheResource(const char* stuff)
|
|||
{
|
||||
str real_stuff;
|
||||
|
||||
if (!stuff) {
|
||||
if (!stuff || !stuff[0]) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue