Fixes Bug in setlinkvalue

status value is only converted to StatusType enum for initial status
This commit is contained in:
Alissa
2025-09-23 13:13:59 +02:00
parent d5d431d34a
commit f456d207db

View File

@@ -4132,10 +4132,9 @@ int DLLEXPORT EN_setlinkvalue(EN_Project p, int index, int property, double valu
if (Link[index].Type == CVPIPE) return 207; if (Link[index].Type == CVPIPE) return 207;
s = (char)ROUND(value); s = (char)ROUND(value);
if (s < 0 || s > 2) return 211; if (s < 0 || s > 2) return 211;
s = s + CLOSED;
if (property == EN_INITSTATUS) if (property == EN_INITSTATUS)
{ {
Link[index].InitStatus = s; Link[index].InitStatus = s + CLOSED;
} }
else else
{ {