fix player index loading + small service config change

This commit is contained in:
fusion32 2025-08-18 03:03:47 -03:00
parent 7ca3cfca6e
commit 9c29c27aa8
2 changed files with 5 additions and 0 deletions

View File

@ -982,6 +982,7 @@ bool GetCharacterIndexEntries(int WorldID, int MinimumCharacterID,
StringCopy(Entries[EntryIndex].Name, StringCopy(Entries[EntryIndex].Name,
sizeof(Entries[EntryIndex].Name), sizeof(Entries[EntryIndex].Name),
(const char*)sqlite3_column_text(Stmt, 1)); (const char*)sqlite3_column_text(Stmt, 1));
EntryIndex += 1;
} }
if(sqlite3_errcode(g_Database) != SQLITE_DONE){ if(sqlite3_errcode(g_Database) != SQLITE_DONE){

View File

@ -3,6 +3,10 @@
[Unit] [Unit]
Description=Tibia Query Manager Description=Tibia Query Manager
After=network.target After=network.target
# Make sure we attempt to start services depending on the querymanager
# if we use start/stop instead of restart. It seems there is no way to
# automate this, although it would be desirable.
Wants=tibia-login.service tibia-game.service tibia-web.service
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target