From ecd5d3ae4e6a0ee973e49f859338dd5a833cb925 Mon Sep 17 00:00:00 2001 From: Andrew nuark G Date: Tue, 15 Dec 2020 16:34:35 +0700 Subject: [PATCH] Fixed id calc --- entities/cargo_entity.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entities/cargo_entity.cpp b/entities/cargo_entity.cpp index 4169e06..e5a6f02 100644 --- a/entities/cargo_entity.cpp +++ b/entities/cargo_entity.cpp @@ -4,7 +4,7 @@ cargo_entity::cargo_entity(const QString &title, int volume) : _title(title), _v this->_id = volume; auto hash = QCryptographicHash::hash(title.toLocal8Bit(), QCryptographicHash::Md5); for (auto bit : hash) { - this->_id |= bit; + this->_id += bit; } }