[Bug Fix] Fix use-after-free corruption with some DB calls (#1335)

This commit is contained in:
Michael Cook (mackal) authored and GitHub committed 2021-04-27 18:53:34 -05:00
1 parent c063d9512e
commit 4358e24dab
6 files changed
+30 -23

No files matched your search

+2 -2
View File
@@ -901,7 +901,7 @@ bool lua_delete_data(std::string bucket_key) {
return DataBucket::DeleteData(bucket_key);
}
const char *lua_get_char_name_by_id(uint32 char_id) {
std::string lua_get_char_name_by_id(uint32 char_id) {
return database.GetCharNameByID(char_id);
}
@@ -937,7 +937,7 @@ int lua_get_group_id_by_char_id(uint32 char_id) {
return database.GetGroupIDByCharID(char_id);
}
const char *lua_get_npc_name_by_id(uint32 npc_id) {
std::string lua_get_npc_name_by_id(uint32 npc_id) {
return quest_manager.getnpcnamebyid(npc_id);
}