fixed warning

svn-id: r11311
This commit is contained in:
Paweł Kołodziejski 2003-11-16 17:49:27 +00:00
parent 643b61d729
commit bef4496b7e

View File

@ -554,7 +554,7 @@ struct TalkSelected {
int16 values[4];
void readFrom(byte *&ptr) {
hasTalkedTo = (bool)READ_BE_UINT16(ptr); ptr += 2;
hasTalkedTo = READ_BE_UINT16(ptr) != 0; ptr += 2;
for (int i = 0; i < 4; i++) {
values[i] = (int16)READ_BE_UINT16(ptr); ptr += 2;
}