This commit is contained in:
bsongis
2014-04-14 11:48:56 +02:00
parent 48161129e3
commit a3804b25e7
+4
View File
@@ -1478,6 +1478,10 @@ bool isSwitchAvailable(int swtch)
return false;
}
if (swtch < 0) {
swtch = -swtch;
}
if (swtch >= SWSRC_FIRST_CSW && swtch <= SWSRC_LAST_CSW) {
LogicalSwitchData * cs = cswAddress(swtch-SWSRC_FIRST_CSW);
return (cs->func != LS_FUNC_NONE);