if (actor)
if (actor) { if (inventory_page > 0) gwin->set_mode(Game_window::gump);
void ActionInventory(int *params){	static int inventory_page = -1;		if (params[0] == -1) {		if (gwin->get_mode() != Game_window::gump)			inventory_page = -1;		if(inventory_page<gwin->get_usecode()->get_party_count())			++inventory_page;		else			inventory_page = 0;	} else {		inventory_page = params[0];		if (inventory_page < 0 ||				inventory_page >= gwin->get_usecode()->get_party_count())			inventory_page = 0;	}		Actor *actor = Get_party_member(inventory_page);	if (actor)		actor->activate(gwin->get_usecode());	if (gwin->get_mode() == Game_window::gump)		Mouse::mouse->set_shape(Mouse::hand);}