Jump to content
  • 0

Help with this: idb_get


Question

Posted

Hello, i am using this code :

return (struct house_storage*)idb_get(special_storage_db,special_id);

This is house_storage struct:

struct house_storage {
int dirty;
int special_id;
short storage_status;
int storage_amount;
struct item items[MAX_HOUSE_STORAGE];
};

and debugging this code, i see that at that moment special_id = 132 ...

and it returns a struct with all fields ok, and all items that are at special_storage_db with special_id=132

.... BUT with special_id = 0 instead of 132....

the question is why????

Please any idea about how to solve it?

1 answer to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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