fix uninitialized _scale

This commit is contained in:
David Rose 2011-06-13 01:57:52 +00:00
parent 4f59ca4705
commit 7a3e652709
1 changed files with 2 additions and 0 deletions

View File

@ -85,6 +85,7 @@ void PfmFile::
clear() {
_x_size = 0;
_y_size = 0;
_scale = 1.0;
_num_channels = 3;
_table.clear();
}
@ -100,6 +101,7 @@ clear(int x_size, int y_size, int num_channels) {
nassertv(x_size >= 0 && y_size >= 0);
_x_size = x_size;
_y_size = y_size;
_scale = 1.0;
_num_channels = _num_channels;
_table.clear();