Update console.c

This line needs to be inside the if statement, it being outside creates a bug which prevents the use of custom PrintConsoles, as it will force any custom PrintConsole to just be equal to the default console. It should only be ran if the default console is being used.
This commit is contained in:
noneuclideanmotion 2022-11-03 04:06:58 +00:00 committed by GitHub
parent 3b2d72a427
commit 7ad4120648
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -590,9 +590,9 @@ PrintConsole* consoleInit(PrintConsole* console) {
currentConsole = console;
} else {
console = currentConsole;
*currentConsole = defaultConsole;
}
*currentConsole = defaultConsole;
if (!console->renderer) {
console->renderer = getDefaultConsoleRenderer();
}