# HG changeset patch # User Grumpy7 # Date 1410032726 -7200 # Node ID cc7019a533fc05048c4c4ba8e4b40eff8882e3fc # Parent b3f96acf6babd6302d539cc538b4f11fee6ea2c9 Fixing dereferencing of an integer instead of a pointer to it diff -r b3f96acf6bab -r cc7019a533fc DecalBuilder.cpp --- 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);