LordAioria Posted October 30, 2012 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
LordAioria Posted November 3, 2012 Author Posted November 3, 2012 SOLVED!!! Thanks for the help Quote
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?
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.