You just need to copy an existing variable like this. You can create a new protected boolean variable mUpdateTexture to the class, initialize it with true here and add the field here. Then change this line to: if ( Platform::compareModifiedTimes( baseCachePath, mTerrFileName ) < 0 && mUpdateTexture ). EDIT: You also need to read/write the mUpdateTexture variable to the network stream (TerrainBlock::packUpdate() & TerrainBlock::unpackUpdate())