Jump to content

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


Recommended Posts

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.

 

Edited by Metin2 Dev
Core X - External 2 Internal
  • Active Member

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

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • 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.