TheEveEye / SCR-Realism-Project

Our goal is to create a perfectly timed timetable for all stations and drivers in the Roblox Game "Stepford County Railway"
https://bit.ly/SCR-RP-Discord
GNU General Public License v3.0
4 stars 0 forks source link

Running remove leg command with an invalid leg crash program #43

Closed kirbix12 closed 1 year ago

kirbix12 commented 1 year ago

Line 683 of Leg.cs returned with an Exception Unhandled error with the following exception:

System.ArgumentOutOfRangeException: 'Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index')'

when entering command remove leg and then entering an invalid leg (can be also entered with no given leg to remove)

kirbix12 commented 1 year ago

Reopened the issue still relating to this bug: The reopening is now on line 690 with an Exception Thrown error with the following:

System.NullReferenceException: 'Object reference not set to an instance of an object.'

selectedLeg was null.

It is located on the same .cs file. Even after Pull Request #45, the console now returns with an invalid argument and wanting to delete Leg 0, but still crashes.

TheEveEye commented 1 year ago

It should work now. Pull Build 89

kirbix12 commented 1 year ago

Closed under Build 90