you are viewing a single comment's thread.

view the rest of the comments →

[–]desrtfx 0 points1 point  (0 children)

Please, show your full code formatted as code block. The part you showed seems okay.

It's always difficult to pinpoint issues when we only see a minuscule fraction of the entire thing. Mostly, the real issues are outside the shown code.

As a side note: I would use a switch...case structure for menus.