mirror of
https://github.com/isledecomp/isle.git
synced 2024-11-26 17:46:38 -05:00
Use sizeof() instead of magic number
This commit is contained in:
parent
24c9f8b9ed
commit
4c387d6d49
1 changed files with 2 additions and 2 deletions
|
@ -240,8 +240,8 @@ void Score::Paint()
|
|||
AmbulanceMissionState* lebp = (AmbulanceMissionState*) GameState()->GetState("AmbulanceMissionState");
|
||||
|
||||
DDSURFACEDESC desc;
|
||||
memset(&desc, 0, 0x6c);
|
||||
desc.dwSize = 0x6c;
|
||||
memset(&desc, 0, sizeof(desc));
|
||||
desc.dwSize = sizeof(desc);
|
||||
if (gd->m_surface->Lock(NULL, &desc, 0, NULL) == DD_OK) {
|
||||
if (desc.lPitch != desc.dwWidth) {
|
||||
gd->m_surface->Unlock(desc.lpSurface);
|
||||
|
|
Loading…
Reference in a new issue