Got rid of ioFailed(). I haven't actually tested it, but we don't use the MPEG

decoder at the moment, and it was only used in the BACKEND_8BIT case anyway.

svn-id: r42484
This commit is contained in:
Torbjörn Andersson 2009-07-14 16:45:18 +00:00
parent 810961e685
commit aa50dd61e9

View File

@ -86,13 +86,10 @@ bool BaseAnimationState::init(const char *name) {
}
p = 0;
while (1) {
while (!f.eos()) {
_palettes[p].end = f.readUint16LE();
_palettes[p].cnt = f.readUint16LE();
if (f.ioFailed())
break;
for (i = 0; i < _palettes[p].cnt; i++) {
_palettes[p].pal[4 * i] = f.readByte();
_palettes[p].pal[4 * i + 1] = f.readByte();