mirror of
https://github.com/EQEmu/Server.git
synced 2026-11-29 10:22:17 +00:00
[Quest API] Further char array cleanup. (#1634)
- Cleans up the rest of the char arrays used when exporting to events. - Converts all events to use a similar variable name for export `export_string`. - Needless calls to .c_str() removed.
This commit is contained in:
1 parent
624d11de4e
commit
c98f3cfb4c
12 files changed
+107
-99
No files matched your search
+2
-4
@@ -202,10 +202,8 @@ void Client::Handle_OP_ZoneChange(const EQApplicationPacket *app) {
|
||||
return;
|
||||
}
|
||||
|
||||
char buf[10];
|
||||
snprintf(buf, 9, "%d", target_zone_id);
|
||||
buf[9] = '\0';
|
||||
parse->EventPlayer(EVENT_ZONE, this, buf, 0);
|
||||
std::string export_string = fmt::format("{}", target_zone_id);
|
||||
parse->EventPlayer(EVENT_ZONE, this, export_string, 0);
|
||||
|
||||
//handle circumvention of zone restrictions
|
||||
//we need the value when creating the outgoing packet as well.
|
||||
|
||||
Reference in new issue
Block a user