Return custom zone names.

This commit is contained in:
Bartosz Taudul 2018-06-29 16:12:40 +02:00
parent 053284b1c7
commit cb100e261c

View File

@ -861,7 +861,11 @@ const char* Worker::GetZoneName( const ZoneEvent& ev ) const
const char* Worker::GetZoneName( const ZoneEvent& ev, const SourceLocation& srcloc ) const
{
if( srcloc.name.active )
if( ev.name.active )
{
return GetString( ev.name );
}
else if( srcloc.name.active )
{
return GetString( srcloc.name );
}