Fix for lua say links, other branch taking longer than thought so making this its own commit

This commit is contained in:
KimLS 2013-10-16 15:47:08 -07:00
parent 17729365db
commit 2c25241763

View File

@ -600,16 +600,18 @@ int lua_merchant_count_item(uint32 npc_id, uint32 item_id) {
}
std::string lua_item_link(int item_id) {
char text[250];
char text[250] = { 0 };
quest_manager.varlink(text, item_id);
return std::string(text);
}
void lua_say_link(const char *phrase, bool silent, const char *link_name) {
std::string lua_say_link(const char *phrase, bool silent, const char *link_name) {
char text[256] = { 0 };
strncpy(text, phrase, 255);
quest_manager.saylink(text, silent, link_name);
return std::string(text);
}
const char *lua_get_guild_name_by_id(uint32 guild_id) {