From 9219061da1c3356728629300bc7ba5984b354bfc Mon Sep 17 00:00:00 2001
From: John Preston <johnprestonmail@gmail.com>
Date: Fri, 30 Oct 2015 19:35:44 -0400
Subject: [PATCH] fixed StorageImageLocation compare

---
 Telegram/SourceFiles/gui/images.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Telegram/SourceFiles/gui/images.h b/Telegram/SourceFiles/gui/images.h
index 407821b95..d625f0e03 100644
--- a/Telegram/SourceFiles/gui/images.h
+++ b/Telegram/SourceFiles/gui/images.h
@@ -43,7 +43,7 @@ struct StorageImageLocation {
 };
 
 inline bool operator==(const StorageImageLocation &a, const StorageImageLocation &b) {
-	return !memcmp(&a, &b, sizeof(StorageImageLocation));
+	return (a.width == b.width) && (a.height == b.height) && (a.dc == b.dc) && (a.volume == b.volume) && (a.local == b.local) && (a.secret == b.secret);
 }
 inline bool operator!=(const StorageImageLocation &a, const StorageImageLocation &b) {
 	return !(a == b);