[DiscordArchive] so.... mb delete the has_items variable since it's unused otherwise?
[DiscordArchive] so.... mb delete the has_items variable since it's unused otherwise?
Archived author: MishaParem • Posted: 2020-05-11T20:05:24.610000+00:00
Original source
initially I wanted to spin up a private server for myself and a couple friends to mess around and experiment on, but now I'm more interested in clearing the warnings and fixing up the bugs that they bring out
Archived author: MishaParem • Posted: 2020-05-11T20:05:51.738000+00:00
Original source
much more fun to play on a stable server, and if I can help with that, then... why no
Archived author: MishaParem • Posted: 2020-05-11T20:05:53.723000+00:00
Original source
not*
Archived author: Kitzunu • Posted: 2020-05-11T20:06:59.104000+00:00
Original source
Archived author: Kitzunu • Posted: 2020-05-11T20:07:01.388000+00:00
Original source
appreciated
Archived author: Yehonal • Posted: 2020-05-11T20:14:01.469000+00:00
Original source
hi <@!358675265125351425> , I can spawn only if you tag me
Archived author: Yehonal • Posted: 2020-05-11T20:14:18.717000+00:00
Original source
please, ask me anything here
Archived author: MishaParem • Posted: 2020-05-11T20:14:24.413000+00:00
Original source
sure
Archived author: MishaParem • Posted: 2020-05-11T20:14:48.806000+00:00
Original source
src/server/game/Entities/Player/Player.cpp:18963:18: error: variable ‘has_items’ set but not used [-Werror=unused-but-set-variable]
18963 | bool has_items = false;
Archived author: MishaParem • Posted: 2020-05-11T20:15:22.405000+00:00
Original source
``` if (result)
{
do
{
bool has_items = false;
Field* fields = result->Fetch();
if (fields[14].GetUInt32() != prevMailID)
{
if (m)
m_mail.push_back(m);
m = new Mail;
m->messageID = fields[14].GetUInt32();
m->messageType = fields[15].GetUInt8();
m->sender = fields[16].GetUInt32();
m->receiver = fields[17].GetUInt32();
m->subject = fields[18].GetString();
m->body = fields[19].GetString();
has_items = fields[20].GetBool();
m->expire_time = time_t(fields[21].GetUInt32());
m->deliver_time = time_t(fields[22].GetUInt32());
m->money = fields[23].GetUInt32();
m->COD = fields[24].GetUInt32();
m->checked = fields[25].GetUInt8();
m->stationery = fields[26].GetUInt8();
m->mailTemplateId = fields[27].GetInt16();
if (m->mailTemplateId && !sMailTemplateStore.LookupEntry(m->mailTemplateId))
{
sLog->outError("Player::_LoadMail - Mail (%u) have not existed MailTemplateId (%u), remove at load", m->messageID, m->mailTemplateId);
m->mailTemplateId = 0;
}
m->state = MAIL_STATE_UNCHANGED;
}
if (m && fields[20].GetBool() /*has_items*/ && fields[12].GetUInt32() /*itemEntry*/)
```