Automatically delete pointers when savestating.

This commit is contained in:
Unknown W. Brackets
2013-02-04 08:28:22 -08:00
parent 82a8450758
commit 112c1e9e23
8 changed files with 133 additions and 60 deletions
+2 -2
View File
@@ -418,9 +418,9 @@ void MetaFileSystem::DoState(PointerWrap &p)
// Save/load per-thread current directory map
p.Do(currentDir);
int n = (u32) fileSystems.size();
u32 n = (u32) fileSystems.size();
p.Do(n);
if (n != fileSystems.size())
if (n != (u32) fileSystems.size())
{
ERROR_LOG(FILESYS, "Savestate failure: number of filesystems doesn't match.");
return;