mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-03 01:15:58 +00:00
COMMON: fix the bug when using default implementation of getDebugChannel
This commit is contained in:
parent
1c4e15599f
commit
d2ea7cea88
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user