diff --git a/dtool/src/prc/notify.cxx b/dtool/src/prc/notify.cxx index 009c6ab818..ce7df151c6 100644 --- a/dtool/src/prc/notify.cxx +++ b/dtool/src/prc/notify.cxx @@ -467,12 +467,12 @@ config_initialized() { Notify *ptr = Notify::ptr(); - for (int i = 0; i <= NS_fatal; ++i) { + for (int severity = 0; severity <= NS_fatal; ++severity) { int priority = ANDROID_LOG_UNKNOWN; if (severity != NS_unspecified) { - priority = i + 1; + priority = severity + 1; } - ptr->_log_streams[i] = new AndroidLogStream(priority); + ptr->_log_streams[severity] = new AndroidLogStream(priority); } #elif defined(__EMSCRIPTEN__)