mirror of
https://github.com/EQEmu/Server.git
synced 2026-10-08 13:43:35 +00:00
Clamp value for max reserved instance id [skip ci]
This commit is contained in:
1 parent
0dc3e5ba35
commit
b41f2dac66
1 file changed
+5
@@ -194,6 +194,11 @@ bool Database::GetUnusedInstanceID(uint16 &instance_id)
|
||||
return true;
|
||||
}
|
||||
|
||||
if (instance_id < max_reserved_instance_id) {
|
||||
instance_id = max_reserved_instance_id;
|
||||
return true;
|
||||
}
|
||||
|
||||
query = StringFormat("SELECT id FROM instance_list where id > %u ORDER BY id", max_reserved_instance_id);
|
||||
results = QueryDatabase(query);
|
||||
|
||||
|
||||
Reference in new issue
Block a user