Fix off by one error in random loading text #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "off-by-one-bugfix"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The random loading text had an off by one error where there was a chance it would interpret the newline at the end of the file as a separator, leaving one extra element in the array -- a blank one. Instead of removing this final element, I have simply modified the random function to ignore the final element. A more proper fix would be much larger, and since this variable is only used here, I thought this was an appropriate course of action.
There is also an error message now, in case this bug does reappear later on.
Just gonna merge; ceres said LGTM