fix windows warning and change QByteArray initializer to match documented prototype

This commit is contained in:
ZappoMan 2014-09-13 09:14:52 -07:00
parent 04772f6e5d
commit 95a63cf131

View file

@ -1022,7 +1022,7 @@ void ImportHeightfieldTool::apply() {
QByteArray color;
if (buffer->getColor().isEmpty()) {
const int WHITE_VALUE = 0xFF;
const char WHITE_VALUE = 0xFF;
color = QByteArray(height.size() * DataBlock::COLOR_BYTES, WHITE_VALUE);
} else {
color = buffer->getUnextendedColor();