mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-13 00:42:26 +00:00
[Bug Fix] Fix #wpadd Query (#4078)
# Notes - `GetNextWaypoint()` was getting a null value and crashing in `Strings::ToInt()`.
This commit is contained in:
parent
34ea870717
commit
9a0b3a4c36
@ -103,7 +103,7 @@ public:
|
|||||||
{
|
{
|
||||||
auto results = db.QueryDatabase(
|
auto results = db.QueryDatabase(
|
||||||
fmt::format(
|
fmt::format(
|
||||||
"SELECT MAX(`number`) FROM `{}` WHERE `zoneid` = {} AND `gridid` = {}",
|
"SELECT COALESCE(MAX(`number`), 0) FROM `{}` WHERE `zoneid` = {} AND `gridid` = {}",
|
||||||
TableName(),
|
TableName(),
|
||||||
zone_id,
|
zone_id,
|
||||||
grid_id
|
grid_id
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user