Cleanup: fix an incorrect variable name.

For consistancy.
This commit is contained in:
Scott Mansell 2016-05-29 15:22:43 +12:00
parent f419faa408
commit 7d80aaedc7
1 changed files with 5 additions and 5 deletions

View File

@ -320,22 +320,22 @@ void DoState(PointerWrap &p)
}
else
{
for (auto& dev : g_FdMap)
for (auto& descriptor : g_FdMap)
{
u32 exists = dev ? 1 : 0;
u32 exists = descriptor ? 1 : 0;
p.Do(exists);
if (exists)
{
u32 isHw = dev->IsHardware() ? 1 : 0;
u32 isHw = descriptor->IsHardware() ? 1 : 0;
p.Do(isHw);
if (isHw)
{
u32 hwId = dev->GetDeviceID();
u32 hwId = descriptor->GetDeviceID();
p.Do(hwId);
}
else
{
dev->DoState(p);
descriptor->DoState(p);
}
}
}