X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Fdebug.cpp;h=bdd4146cab253e9c57fcf1da3a5e867884c7478a;hb=a3441638c67c9a9f626d7542a53fef6340d42751;hp=a30d6a95f73be45b57ef48a9675d31a05d4bb9cb;hpb=76be103a91d6987527af19e87d93007be8ba8a67;p=minetest.git diff --git a/src/debug.cpp b/src/debug.cpp index a30d6a95f..bdd4146ca 100644 --- a/src/debug.cpp +++ b/src/debug.cpp @@ -21,8 +21,8 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "porting.h" #include "debug.h" #include "exceptions.h" -#include -#include +#include +#include #include #include #include @@ -110,7 +110,7 @@ void DebugStack::print(FILE *file, bool everything) os.str().c_str()); for (int i = 0; i < stack_max_i; i++) { - if (i == stack_i && everything == false) + if (i == stack_i && !everything) break; if (i < stack_i) @@ -128,7 +128,7 @@ void DebugStack::print(std::ostream &os, bool everything) os<<"DEBUG STACK FOR THREAD "<stack_i--;