diff --git a/code/modules/power/solar.dm b/code/modules/power/solar.dm index e2ab43e29ad..7bb2f16b64a 100644 --- a/code/modules/power/solar.dm +++ b/code/modules/power/solar.dm @@ -397,7 +397,7 @@ switch(action) if("cdir") //change panel orientation var/newAngle = text2num(params["cdir"]) - if(newAngle != null) //0 is ok + if(!isnull(newAngle)) //0 is ok cdir = clamp(newAngle, 0, 359) targetdir = cdir set_panels(cdir)