diff --git a/code/datums/components/storage/concrete/rped.dm b/code/datums/components/storage/concrete/rped.dm
index 06de0ceb33..8014cf17c2 100644
--- a/code/datums/components/storage/concrete/rped.dm
+++ b/code/datums/components/storage/concrete/rped.dm
@@ -31,7 +31,7 @@
for(var/obj/item/B in things)
if(B.get_part_rating() > lowest_rating)
things.Remove(B)
- if(lowest_rating = INFINITY)
+ if(lowest_rating == INFINITY)
to_chat(M, "There's no parts to dump out from [parent].")
return
to_chat(M, "You start dumping out tier/cell rating [lowest_rating] parts from [parent].")
@@ -75,7 +75,7 @@
for(var/obj/item/B in things)
if(B.get_part_rating() > lowest_rating)
things.Remove(B)
- if(lowest_rating = INFINITY)
+ if(lowest_rating == INFINITY)
to_chat(M, "There's no parts to dump out from [parent].")
return
to_chat(M, "You start dumping out tier/cell rating [lowest_rating] parts from [parent].")