diff options
-rw-r--r-- | src/cheat_gui.cpp | 2 | ||||
-rw-r--r-- | src/network/core/tcp.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/cheat_gui.cpp b/src/cheat_gui.cpp index 7b561673b..0b3aa1db4 100644 --- a/src/cheat_gui.cpp +++ b/src/cheat_gui.cpp @@ -66,7 +66,7 @@ static int32 ClickChangeCompanyCheat(int32 p1, int32 p2) */ static int32 ClickSetProdCheat(int32 p1, int32 p2) { - _cheats.setup_prod.value = p1; + _cheats.setup_prod.value = (p1 != 0); InvalidateWindowClassesData(WC_INDUSTRY_VIEW); return _cheats.setup_prod.value; } diff --git a/src/network/core/tcp.cpp b/src/network/core/tcp.cpp index cdf072cec..77afac131 100644 --- a/src/network/core/tcp.cpp +++ b/src/network/core/tcp.cpp @@ -238,7 +238,7 @@ bool NetworkTCPSocketHandler::CanSendReceive() #endif this->writable = !!FD_ISSET(this->sock, &write_fd); - return FD_ISSET(this->sock, &read_fd); + return FD_ISSET(this->sock, &read_fd) != 0; } #endif /* ENABLE_NETWORK */ |