Fix singular read method

(cherry picked from commit 9c1f440358)
This commit is contained in:
Brogolem35
2026-03-13 12:08:18 +03:00
committed by Thaddeus Crews
parent 46fb015202
commit 3aaedd088a
+1 -1
View File
@@ -48,7 +48,7 @@ class RingBuffer {
public:
T read() {
ERR_FAIL_COND_V(space_left() < 1, T());
ERR_FAIL_COND_V(data_left() < 1, T());
return data.ptr()[inc(read_pos, 1)];
}