Fix #5558: can't hire staff

Caused by invalid flag check
This commit is contained in:
Michał Janiszewski 2017-06-06 21:16:36 +02:00
parent 1e9f9790ae
commit 37a3179639
2 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@ extern "C" {
// This define specifies which version of network stream current build uses.
// It is used for making sure only compatible builds get connected, even within
// single OpenRCT2 version.
#define NETWORK_STREAM_VERSION "8"
#define NETWORK_STREAM_VERSION "9"
#define NETWORK_STREAM_ID OPENRCT2_VERSION "-" NETWORK_STREAM_VERSION
#ifdef __cplusplus

View File

@ -214,7 +214,7 @@ static money32 staff_hire_new_staff_member(uint8 staff_type, uint8 flags, sint16
return MONEY32_UNDEFINED;
}
if (!(flags & GAME_COMMAND_FLAG_APPLY))
if (flags & GAME_COMMAND_FLAG_APPLY)
{
sint32 newStaffId = i;
const rct_sprite_bounds *spriteBounds;