Jump to content

warning C4800: 'unsigned char' : forcing value to bool 'true' or 'false' (performance warning)


Recommended Posts

Hi I tried to install offlineshop by ken

I compiled the sever and client source successfully

But I get error on client source

	Line 392: 16>PythonNetworkStreamPhaseGame.cpp(4212): warning C4800: 'unsigned char' : forcing value to bool 'true' or 'false' (performance warning)
	Line 392: 16>PythonNetworkStreamPhaseGame.cpp(4212): warning C4800: 'unsigned char' : forcing value to bool 'true' or 'false' (performance warning)

This is my function where I get error

I tried some fixes which I have commented now but it didn't hep

		case SHOP_SUBHEADER_GC_CHECK_RESULT:
		{
			BYTE bHasOfflineShop;
			//BYTE bHasOfflineShop = 0;
			//BYTE bHasOfflineShop! = 0;
			//BYTE bHasOfflineShop! = NULL;
			if (!Recv(sizeof(BYTE), &bHasOfflineShop))
				return false;

			TraceError("OfflineShopResult(%d)", bHasOfflineShop);

			CPythonPlayer::instance().SetHasOfflineShop(bHasOfflineShop);
			break;
		}

Plz help

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



  • Similar Content

  • Activity

    1. 60

      Inbuild GR2 Animation

    2. 2

      wait() function bug

    3. 0

      Remove Party Role Bonuses

    4. 1

      Fix CBar3D

    5. 2

      set_quest_state not working

    6. 1

      Fix CBar3D

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.