Browse Source

bugfix for vanilla diablo (set archive size to zero in case the file did not exists)

pull/1024/head
pionere 5 years ago committed by Anders Jenbo
parent
commit
5fb3b6fa66
  1. 1
      Source/mpqapi.cpp

1
Source/mpqapi.cpp

@ -207,6 +207,7 @@ struct Archive {
}
} else {
mode |= std::ios::trunc;
this->size = 0;
}
if (!stream.Open(name, mode)) {
stream.Close();

Loading…
Cancel
Save