Skip to content

Commit

Permalink
pass context even if there is no debug info
Browse files Browse the repository at this point in the history
the context can then display an error
instead of crashing with a nullptr exception
  • Loading branch information
ChillerDragon committed Oct 26, 2024
1 parent 1b0e4e6 commit 1ffcc2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/twbl/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ class CServerBotStateOut
pCallback(aBuf, i + 1, pContext);
}
#else
pCallback("to use tracing compile with -DTWBL_DEBUG=ON", 0, nullptr);
pCallback("to use tracing compile with -DTWBL_DEBUG=ON", 0, pContext);
#endif
}

Expand Down

0 comments on commit 1ffcc2a

Please sign in to comment.