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

game.core (GetName() and SaveSingleItem()) - Possible Sash System Memory Leak


Seryov

Question

Hi Guys!

I have a problem with my game.

Screenshots:

Spoiler

-sPzMJKORYmSGCNmCEW0ZQ.png

NiqzJZx2QtKZu_eFLQ2vhA.png

 

Line Errors:

Line 484:
sys_log(1, "ITEM_SAVE %s:%d in %s window %d", item->GetName(), item->GetID(), item->GetOwner()->GetName(), item->GetWindow());

Does anyone know what can cause this problem?

Thank you guys.

 

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0
  • Premium

Add

item->SetSkipSave(true);

after

item->SetRealID(id);

at:

void CHARACTER::OpenShop(DWORD id, const char *name, bool onboot)

void CHARACTER::UpdateShopItems()

 

and you can run this query:

DELETE FROM player.item WHERE owner_id = 0;

  • Love 1
Link to comment
Share on other sites

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.