[Edit by Berenger : formatting. Please next time select your code and hit the 101 010 button.]
Another issue - avoid putting multiple classes in one single file.
Also what i've noticed - it seems you didnt instantiate Inventory class in your Player component. Do that:
Hard to say whats also wrong, please apply my advices and ping us whats the results, then if it will still be wrong, we could move one.
answered Jan 23 '13 at 11:45 AM