Skip to content

Commit

Permalink
GOB: Remove useless memcpy()
Browse files Browse the repository at this point in the history
Happened while removing Draw::_vgaSmallPalette in 0f9b136.

Fixes Coverity issue #1230309.
  • Loading branch information
DrMcCoy committed Oct 18, 2014
1 parent 92bf8a5 commit 7bdf481
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions engines/gob/inter_v1.cpp
Expand Up @@ -1124,8 +1124,6 @@ void Inter_v1::o1_palLoad(OpFuncParams &params) {
_vm->_draw->_vgaPalette[i].green = _vm->_game->_script->readByte();
_vm->_draw->_vgaPalette[i].blue = _vm->_game->_script->readByte();
}

memcpy(_vm->_draw->_vgaPalette, _vm->_draw->_vgaPalette, 16 * 3);
break;

case 53:
Expand Down

0 comments on commit 7bdf481

Please sign in to comment.