rsx_methods.cpp fix

This commit is contained in:
Nekotekina 2016-07-31 11:09:11 +03:00
parent 190fc4301e
commit 6a9f3040e1
3 changed files with 17 additions and 20 deletions

View file

@ -476,10 +476,9 @@ namespace rsx
frame_debug.command_queue.push_back(std::make_pair(reg, value));
}
const auto& It = methods.find(reg);
if (It != methods.end())
if (auto method = methods[reg])
{
It->second(this, value);
method(this, value);
}
}