mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 02:51:49 +00:00
Fixes
This commit is contained in:
parent
0ec7f3348e
commit
47e24cb468
3 changed files with 11 additions and 11 deletions
|
|
@ -128,7 +128,7 @@ float BinaryReader::getFloat32() {
|
|||
|
||||
string BinaryReader::getString() {
|
||||
uint16_t length = (uint16_t)getInt16();
|
||||
if (pos+length >= size) {
|
||||
if (pos+length > size) {
|
||||
throw std::underflow_error("unexpected end");
|
||||
}
|
||||
pos += length;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue