Add printing full object path for some warning logs

This commit is contained in:
Wojtek Figat
2021-06-01 14:57:32 +02:00
parent c30e338f0a
commit bcca8c9291
2 changed files with 3 additions and 3 deletions

View File

@@ -104,7 +104,7 @@ void AudioSource::Play()
return;
if (Clip == nullptr)
{
LOG(Warning, "Cannot play audio source without a clip ({0})", GetName());
LOG(Warning, "Cannot play audio source without a clip ({0})", GetNamePath());
return;
}
@@ -133,7 +133,7 @@ void AudioSource::Pause()
{
if (_state != States::Playing)
{
LOG(Warning, "Cannot pause audio source that is not playing ({0})", GetName());
LOG(Warning, "Cannot pause audio source that is not playing ({0})", GetNamePath());
return;
}