Skip to content

Commit

Permalink
Client: Console: Fix error always being printed
Browse files Browse the repository at this point in the history
  • Loading branch information
tmp64 committed Nov 19, 2023
1 parent 214ca90 commit 83ba5a7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/game/client/console.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -255,12 +255,12 @@ void console::HookConsoleColor()

if (*pColor != compare)
{
if (target)
if (!target)
{
ConPrintf(ConColor::Red,
" Offset: 0x%X\n"
" Expected: %d %d %d %d\n"
" Got: %d %d %d %d.\n",
" Expected: %d %d %d %d\n"
" Got: %d %d %d %d.\n",
offset,
compare.r(), compare.g(), compare.b(), compare.a(),
pColor->r(), pColor->g(), pColor->b(), pColor->a());
Expand Down

0 comments on commit 83ba5a7

Please sign in to comment.