autofile: don't copy CAutoFile by value
This commit is contained in:
@@ -35,7 +35,7 @@ bool read_block(const std::string& filename, CBlock& block)
|
||||
|
||||
fseek(fp, 8, SEEK_SET); // skip msgheader/size
|
||||
|
||||
CAutoFile filein = CAutoFile(fp, SER_DISK, CLIENT_VERSION);
|
||||
CAutoFile filein(fp, SER_DISK, CLIENT_VERSION);
|
||||
if (!filein) return false;
|
||||
|
||||
filein >> block;
|
||||
|
||||
Reference in New Issue
Block a user