Fix singular read method
(cherry picked from commit 9c1f440358530281cba3076e23832182ee4da3d7)
This commit is contained in:
committed by
Thaddeus Crews
parent
46fb015202
commit
3aaedd088a
@@ -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)];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user