Add ur prototype idea

This commit is contained in:
2023-09-08 06:26:48 +00:00
parent a4111b01a5
commit cc879746e3
4 changed files with 110 additions and 14 deletions

View File

@@ -51,7 +51,7 @@ void mYughLog(int category, int priority, int line, const char *file, const char
snprintf(buffer, ERROR_BUFFER, "%s:%d: %s, %s: %s\n", file, line, logstr[priority], catstr[category], msgbuffer);
log_print(buffer);
if (category != LOG_SCRIPT && priority >= 2)
if (category == LOG_SCRIPT && priority >= 2)
js_stacktrace();
}
#endif