bsnes/nall - fix bug in serializer copy constructor

This commit is contained in:
zeromus 2015-06-18 03:06:02 +00:00
parent 95a7062fad
commit 3cf7041e68
1 changed files with 3 additions and 1 deletions

View File

@ -122,7 +122,9 @@ namespace nall {
return *this;
}
serializer(serializer &&s) {
serializer(serializer &&s)
: idata(nullptr) //zero 16-jun-2015 - was a bug not to have this. operator= chokes on uninitialized idata otherwise
{
operator=(std::move(s));
}