COMMON: fix the bug when using default implementation of getDebugChannel

This commit is contained in:
ysj1173886760 2021-05-14 21:53:49 +08:00 committed by Eugene Sandulenko
parent 1c4e15599f
commit d2ea7cea88

View File

@ -129,6 +129,8 @@ bool DebugManager::isDebugChannelEnabled(uint32 channel, bool enforce) {
}
void DebugManager::debugFlagsRegister(const DebugChannelDef *channels) {
if (!channels)
return;
for (uint i = 0; channels[i].channel != 0; i++)
addDebugChannel(channels[i].channel, channels[i].name, channels[i].description);
}