Add additional NULL checks just in case

This commit is contained in:
Crash Cringle
2025-03-22 12:02:04 -07:00
committed by teejusb
parent ce7cef6d90
commit 0270cda54d
3 changed files with 20 additions and 9 deletions
+1
View File
@@ -310,6 +310,7 @@ bool Song::LoadFromSongDir(RString sDir, bool load_autosave, ProfileSlot from_pr
}
else
{
LOG->Trace("Loading song from profile2.");
m_LoadedFromProfile= from_profile;
m_sGroupName= sDir.substr(1, sDir.find('/', 1) - 1);
use_cache= false;