mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 18:52:22 +00:00
Fix calls to GetSafePoints to not pass null_ptr as zonename (#1336)
* Fix calls to GetSafePoints to not pass null_ptr as zonename * Fix GetSafePoints to check and deal will nullptr being sent as short_zone_name * Remove unintentinal formatting change * Fix some typos/cut-n-paste errors I assume Co-authored-by: Noudess <noudess@gmail.com>
This commit is contained in:
@@ -972,6 +972,10 @@ bool Database::SetVariable(const std::string varname, const std::string &varvalu
|
||||
|
||||
// Get zone starting points from DB
|
||||
bool Database::GetSafePoints(const char* zone_short_name, uint32 instance_version, float* safe_x, float* safe_y, float* safe_z, float* safe_heading, int16* min_status, uint8* min_level, char *flag_needed) {
|
||||
|
||||
if (zone_short_name == nullptr)
|
||||
return false;
|
||||
|
||||
std::string query = fmt::format(
|
||||
SQL(
|
||||
SELECT
|
||||
|
||||
Reference in New Issue
Block a user