mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-04 08:17:40 +00:00
QDENGINE: Fix pointless assignment. PVS-Studio V1048
This commit is contained in:
parent
496e90df96
commit
671f9c56ea
@ -144,7 +144,7 @@ qdSprite &qdSprite::operator = (const qdSprite &spr) {
|
||||
|
||||
delete [] _data;
|
||||
if (spr._data) {
|
||||
int ssx = 2;
|
||||
int ssx;
|
||||
switch (_format) {
|
||||
case GR_RGB565:
|
||||
case GR_ARGB1555:
|
||||
@ -159,6 +159,9 @@ qdSprite &qdSprite::operator = (const qdSprite &spr) {
|
||||
case GR_ARGB8888:
|
||||
ssx = 4;
|
||||
break;
|
||||
default:
|
||||
ssx = 2;
|
||||
break;
|
||||
}
|
||||
|
||||
_data = new byte[_picture_size.x * _picture_size.y * ssx];
|
||||
|
Loading…
Reference in New Issue
Block a user