inda19plusplus / logik

Logisim clone
MIT License
2 stars 5 forks source link

Bugfix #49

Closed default-username-852 closed 4 years ago

default-username-852 commented 4 years ago

Fixed bug where program would crash when trying to unlink a component and subnet which weren't connected. Instead, the program returns false from the call to unlink.

default-username-852 commented 4 years ago

It already does that. The function signature for unlink is fn unlink(data: *mut Data, component: i32, port: i32, subnet: i32) -> bool. It's just that now, there is another case which returns false.

default-username-852 commented 4 years ago

Turns out I forgot to update the code on the C# side. That is changed in 7aa2787 though.