mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 18:03:56 -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);
|
||||
byte = in->get();
|
||||
}
|
||||
bool failed = in->fail();
|
||||
bool failed = in->fail() && !in->eof();
|
||||
delete in;
|
||||
|
||||
if (failed) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user