Use MIN with correct template parameter.

svn-id: r42008
This commit is contained in:
Lars Persson 2009-07-01 20:11:44 +00:00
parent 4b850a2c03
commit 62acda5fdb

View File

@ -1095,7 +1095,7 @@ bool Inter_v1::o1_palLoad(OpFuncParams &params) {
if (!resource)
break;
memcpy((char *) _vm->_draw->_vgaPalette, resource->getData(), MIN(768, resource->getSize()));
memcpy((char *) _vm->_draw->_vgaPalette, resource->getData(), MIN<int>(768, resource->getSize()));
delete resource;
break;