mirror of
https://github.com/EQEmu/Server.git
synced 2026-04-07 21:32:26 +00:00
Add missing QueryDatabase in ZoneDatabase::AddWPForSpawn
This commit is contained in:
parent
a1e425f936
commit
f69eccc42b
@ -1291,6 +1291,7 @@ uint32 ZoneDatabase::AddWPForSpawn(Client *client, uint32 spawn2id, float xpos,
|
|||||||
// Find out what the next waypoint is for this grid
|
// Find out what the next waypoint is for this grid
|
||||||
query = StringFormat("SELECT max(`number`) FROM grid_entries WHERE zoneid = '%i' AND gridid = '%i'", zoneid, grid_num);
|
query = StringFormat("SELECT max(`number`) FROM grid_entries WHERE zoneid = '%i' AND gridid = '%i'", zoneid, grid_num);
|
||||||
|
|
||||||
|
results = QueryDatabase(query);
|
||||||
if(!results.Success()) { // Query error
|
if(!results.Success()) { // Query error
|
||||||
LogFile->write(EQEMuLog::Error, "Error getting next waypoint id '%s': '%s'", query.c_str(), results.ErrorMessage().c_str());
|
LogFile->write(EQEMuLog::Error, "Error getting next waypoint id '%s': '%s'", query.c_str(), results.ErrorMessage().c_str());
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user