Mercurial > mm7
diff DecalBuilder.cpp @ 2484:cc7019a533fc
Fixing dereferencing of an integer instead of a pointer to it
author | Grumpy7 |
---|---|
date | Sat, 06 Sep 2014 21:45:26 +0200 |
parents | b054ea5daf45 |
children |
line wrap: on
line diff
--- a/DecalBuilder.cpp Sat Sep 06 20:52:46 2014 +0200 +++ b/DecalBuilder.cpp Sat Sep 06 21:45:26 2014 +0200 @@ -386,7 +386,7 @@ pGame->pIndoorCameraD3D->_436CDC_mess_with_lightmap__clipflag_2(v13->pVertices, v13->uNumVertices, this->pVertices, &a8b); //v40 = (int)v31; //v39 = this->pVertices; - pGame->pIndoorCameraD3D->_437143(a8b, v13->pVertices, this->pVertices, (unsigned int *)v13->uNumVertices); + pGame->pIndoorCameraD3D->_437143(a8b, v13->pVertices, this->pVertices, (unsigned int *)&v13->uNumVertices); } else if ( uClipFlags & 4 ) { @@ -395,7 +395,7 @@ pGame->pIndoorCameraD3D->_436F09_mess_with_lightmap__clipflag_4(v13->pVertices, v13->uNumVertices, this->pVertices, &a8b); //v40 = (int)v31; //v39 = this->pVertices; - pGame->pIndoorCameraD3D->_437143(a8b, v13->pVertices, this->pVertices, (unsigned int *)v13->uNumVertices); + pGame->pIndoorCameraD3D->_437143(a8b, v13->pVertices, this->pVertices, (unsigned int *)&v13->uNumVertices); } else MessageBoxA(nullptr, "Undefined clip flag specified", "E:\\WORK\\MSDEV\\MM7\\MM7\\Code\\PolyProjector.cpp:258", 0);