mirror of https://github.com/mgba-emu/mgba.git
Core: Negative log types are invalid
This commit is contained in:
parent
cd4dbaeb60
commit
7d014f1ae6
|
@ -50,7 +50,7 @@ const char* mLogCategoryName(int category) {
|
||||||
}
|
}
|
||||||
|
|
||||||
const char* mLogCategoryId(int category) {
|
const char* mLogCategoryId(int category) {
|
||||||
if (category < MAX_CATEGORY) {
|
if (category >= 0 && category < MAX_CATEGORY) {
|
||||||
return _categoryIds[category];
|
return _categoryIds[category];
|
||||||
}
|
}
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Reference in New Issue