Jump to content
×
×
  • Create New...
  • 0

Problem with drop hack fix


danio475

Question

Hi I try to fix party drophack in my source, but I have some problems :

 

char_item.cpp:5644: error: ISO C++ forbids initialization of member 'is_allowed'
char_item.cpp:5644: error: making 'is_allowed' static
char_item.cpp:5644: error: ISO C++ forbids in-class initialization of non-const static member 'is_allowed'

this is the code :

namespace NPartyPickupPermission
{
    struct FCompareOwnership
    {
        LPITEM item;
        bool is_allowed = false;

        FCompareOwnership(LPITEM item) 
            : item(item)
        {
        }

        void operator () (LPCHARACTER ch)
        {
            if (item->IsOwnership(ch) == true)
                is_allowed = true;
        }
    };
}

 

bool is_allowed = false; is a line 5644, any ideas what I did wrong?

 

any ideas to fix/

Link to comment
Share on other sites

  • Answers 4
  • Created
  • Last Reply

Top Posters For This Question

4 answers to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.


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.