Commit 06902144 authored by vysheng's avatar vysheng

strutures.c: fixed bad flags in get chat query

parent ba586594
...@@ -469,12 +469,12 @@ void fetch_chat (struct chat *C) { ...@@ -469,12 +469,12 @@ void fetch_chat (struct chat *C) {
int version = -1; int version = -1;
if (x == CODE_chat) { if (x == CODE_chat) {
unsigned y = fetch_int (); unsigned z = fetch_int ();
if (y == CODE_chat_photo_empty) { if (z == CODE_chat_photo_empty) {
small.dc = -2; small.dc = -2;
big.dc = -2; big.dc = -2;
} else { } else {
assert (y == CODE_chat_photo); assert (z == CODE_chat_photo);
fetch_file_location (&small); fetch_file_location (&small);
fetch_file_location (&big); fetch_file_location (&big);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment