diff options
| author | Shauren <shauren.trinity@gmail.com> | 2020-06-01 00:15:33 +0200 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2020-06-01 00:15:33 +0200 |
| commit | db7126de46825a406b834a88d50cb58fb5b56392 (patch) | |
| tree | e415635b8dd6519b04aff89400bab4faee367f39 /src | |
| parent | 41c3675bb9434b92bd20b8994fefdcb17e009052 (diff) | |
Core/DataStores: Fixed loading hotfixes crash when compiled with strict database type checking
Closes #24716
Diffstat (limited to 'src')
| -rw-r--r-- | src/server/shared/DataStores/DB2DatabaseLoader.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/shared/DataStores/DB2DatabaseLoader.cpp b/src/server/shared/DataStores/DB2DatabaseLoader.cpp index a147b12aae4..a449428a5fd 100644 --- a/src/server/shared/DataStores/DB2DatabaseLoader.cpp +++ b/src/server/shared/DataStores/DB2DatabaseLoader.cpp @@ -69,8 +69,8 @@ char* DB2DatabaseLoader::Load(uint32& records, char**& indexTable, char*& string // Resize index table uint32 indexTableSize = records; if (PreparedQueryResult maxIdResult = HotfixDatabase.Query(HotfixDatabase.GetPreparedStatement(HotfixDatabaseStatements(_loadInfo->Statement + 1)))) - if ((*maxIdResult)[0].GetUInt32() > records) - indexTableSize = (*maxIdResult)[0].GetUInt32(); + if (uint32((*maxIdResult)[0].GetUInt64()) > records) + indexTableSize = uint32((*maxIdResult)[0].GetUInt64()); if (indexTableSize > records) { |
