Fix issue with Return Home button always being available

This commit is contained in:
Michael Cook (mackal) 2014-10-07 19:02:07 -04:00
parent 2bee906784
commit 45ef740244

View File

@ -103,7 +103,7 @@ void WorldDatabase::GetCharSelectInfo(uint32 account_id, CharacterSelect_Struct*
if (RuleB(World, EnableReturnHomeButton)) {
int now = time(nullptr);
if ((now - atoi(row[8])) >= RuleI(World, MinOfflineTimeToReturnHome))
if ((now - atoi(row[7])) >= RuleI(World, MinOfflineTimeToReturnHome))
cs->gohome[char_num] = 1;
}