LordAioria Posted October 30, 2012 Group: Members Topic Count: 7 Topics Per Day: 0.00 Content Count: 17 Reputation: 0 Joined: 12/31/11 Last Seen: April 13, 2017 Share Posted October 30, 2012 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? Quote Link to comment Share on other sites More sharing options...
LordAioria Posted November 3, 2012 Group: Members Topic Count: 7 Topics Per Day: 0.00 Content Count: 17 Reputation: 0 Joined: 12/31/11 Last Seen: April 13, 2017 Author Share Posted November 3, 2012 SOLVED!!! Thanks for the help Quote Link to comment Share on other sites More sharing options...
Question
LordAioria
Hello, i am using this code :
return (struct house_storage*)idb_get(special_storage_db,special_id);
This is house_storage struct:
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?
Link to comment
Share on other sites
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.