core/video_core: Use in-place construction where possible

This commit is contained in:
Lioncash 2015-02-17 17:42:28 -05:00
parent 12181c8a64
commit 5d2366e1e9
3 changed files with 5 additions and 5 deletions

View file

@ -58,8 +58,8 @@ public:
if (observers.empty())
return;
gx_command_history.push_back(GSP_GPU::Command());
GSP_GPU::Command& cmd = gx_command_history[gx_command_history.size()-1];
gx_command_history.emplace_back();
GSP_GPU::Command& cmd = gx_command_history.back();
memcpy(&cmd, command_data, sizeof(GSP_GPU::Command));