mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
eof is not fail
This commit is contained in:
parent
89528a5fc9
commit
38db3b62d2
@ -67,7 +67,7 @@ read_file(Datagram &data) const {
|
|||||||
data.add_int8(byte);
|
data.add_int8(byte);
|
||||||
byte = in->get();
|
byte = in->get();
|
||||||
}
|
}
|
||||||
bool failed = in->fail();
|
bool failed = in->fail() && !in->eof();
|
||||||
delete in;
|
delete in;
|
||||||
|
|
||||||
if (failed) {
|
if (failed) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user