Skip to content

Commit ad7640d

Browse files
authored
[CORE] Prevent dereferencing NULL pointer 't' in Record_Texture_End() (#1108)
1 parent 5247732 commit ad7640d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Core/Libraries/Source/WWVegas/WW3D2/statistics.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,11 +132,11 @@ static void Record_Texture_End()
132132
// int percents=100-100*bytes/non_red_bytes;
133133
working_string.Format("%4.4dkb ",bytes/1024);
134134
texture_statistics_string+=working_string;
135+
texture_statistics_string+=t->Get_Texture_Name();//getTextureName();
135136
}
136137
else {
137138
texture_statistics_string+="N/A ";
138139
}
139-
texture_statistics_string+=t->Get_Texture_Name();//getTextureName();
140140
texture_statistics_string+=error;
141141
texture_statistics_string+="\n";
142142
}

0 commit comments

Comments
 (0)