Restoring Disciplines to their original load order (Slot)

Tribute uninitialized value database conversion fix
Tribute load fix (Lost in translation)
Changed Tribute 0 value to 0xFFFFFFFF instead of 0
Sanity check for unitialized tribute value on load
This commit is contained in:
akkadius
2014-09-23 19:12:31 -05:00
parent 973aa94cb5
commit 16ba3eb11e
3 changed files with 13 additions and 7 deletions
+1 -1
View File
@@ -1857,7 +1857,7 @@ bool Database::CheckDatabaseConversions() {
/* Run Tribute Convert */
first_entry = 0; rquery = "";
for (i = 0; i < EmuConstants::TRIBUTE_SIZE; i++){
if (pp->tributes[i].tribute > 0){
if (pp->tributes[i].tribute > 0 && pp->tributes[i].tribute != 4294967295){
if (first_entry != 1){
rquery = StringFormat("REPLACE INTO `character_tribute` (id, tier, tribute) VALUES (%u, %u, %u)", character_id, pp->tributes[i].tier, pp->tributes[i].tribute);
first_entry = 1;