fix for smoke writing uninitialized values to pointcache, not a big deal since they are ignored on reading.

This commit is contained in:
Campbell Barton
2012-07-03 06:45:43 +00:00
parent 6a2a424c40
commit ff9a4e445e
2 changed files with 3 additions and 3 deletions

View File

@@ -234,7 +234,7 @@ inline void MTRand::seed( uint32 *const bigSeed, const uint32 seedLength )
initialize(19650218UL);
register int i = 1;
register uint32 j = 0;
register int k = ( N > seedLength ? N : seedLength );
register int k = ( (uint32)N > seedLength ? (uint32)N : seedLength );
for( ; k; --k )
{
state[i] =

View File

@@ -198,8 +198,8 @@ extern "C" void smoke_export(FLUID_3D *fluid, float *dt, float *dx, float **dens
*vyold = fluid->_yVelocityOld;
*vzold = fluid->_zVelocityOld;
*obstacles = fluid->_obstacles;
dt = &(fluid->_dt);
dx = &(fluid->_dx);
*dt = fluid->_dt;
*dx = fluid->_dx;
}