Enigma56/ProjectLegend

Segmentation Fault

Closed this issue · 1 comments

For some odd reason, ctrl + z does not work as an input inside of the CLI. My guess is because there is some sort of clash between the undo feature of that key combo and the game receiving input

Cause: whenever an input resulted in being null, such as a command(ctrl + z), the input would be null. The next line then splits the input BUT if the input is null, the split will throw an error because null is no an object that can be split. Moving the split outside of the for-loop ensures that any null input is thrown out then new input is asked for until it is valid.