View Single Post
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-27-2011 , 02:37   Re: How to save a player choice?
Reply With Quote #6

Quote:
Originally Posted by FoxueR View Post
Menu items start at 0, so it's probably better to initialize the choice to -1 or increment the menu items before storing them.
That is entirely upto the coder. You don't have to use the key (item) variable as the identifier. If option 0 is coded as "having not selected anything yet" then it will work just fine.
__________________
fysiks is offline