Forums WoW Modding Support Archives Azerothcore Discord Archives [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?

[DiscordArchive] so.... mb delete the has_items variable since it's unused otherwise?

Pages (4): Previous 1 2 3 4 Next
rektbyfaith
Administrator
0
05-11-2020, 08:05 PM
#11
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
rektbyfaith
05-11-2020, 08:05 PM #11

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

rektbyfaith
Administrator
0
05-11-2020, 08:05 PM
#12
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
rektbyfaith
05-11-2020, 08:05 PM #12

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

rektbyfaith
Administrator
0
05-11-2020, 08:05 PM
#13
Archived author: MishaParem • Posted: 2020-05-11T20:05:53.723000+00:00
Original source

not*
rektbyfaith
05-11-2020, 08:05 PM #13

Archived author: MishaParem • Posted: 2020-05-11T20:05:53.723000+00:00
Original source

not*

rektbyfaith
Administrator
0
05-11-2020, 08:06 PM
#14
Archived author: Kitzunu • Posted: 2020-05-11T20:06:59.104000+00:00
Original source

rektbyfaith
05-11-2020, 08:06 PM #14

Archived author: Kitzunu • Posted: 2020-05-11T20:06:59.104000+00:00
Original source

rektbyfaith
Administrator
0
05-11-2020, 08:07 PM
#15
Archived author: Kitzunu • Posted: 2020-05-11T20:07:01.388000+00:00
Original source

appreciated
rektbyfaith
05-11-2020, 08:07 PM #15

Archived author: Kitzunu • Posted: 2020-05-11T20:07:01.388000+00:00
Original source

appreciated

rektbyfaith
Administrator
0
05-11-2020, 08:14 PM
#16
Archived author: Yehonal • Posted: 2020-05-11T20:14:01.469000+00:00
Original source

hi <@!358675265125351425> , I can spawn only if you tag me
rektbyfaith
05-11-2020, 08:14 PM #16

Archived author: Yehonal • Posted: 2020-05-11T20:14:01.469000+00:00
Original source

hi <@!358675265125351425> , I can spawn only if you tag me

rektbyfaith
Administrator
0
05-11-2020, 08:14 PM
#17
Archived author: Yehonal • Posted: 2020-05-11T20:14:18.717000+00:00
Original source

please, ask me anything here
rektbyfaith
05-11-2020, 08:14 PM #17

Archived author: Yehonal • Posted: 2020-05-11T20:14:18.717000+00:00
Original source

please, ask me anything here

rektbyfaith
Administrator
0
05-11-2020, 08:14 PM
#18
Archived author: MishaParem • Posted: 2020-05-11T20:14:24.413000+00:00
Original source

sure
rektbyfaith
05-11-2020, 08:14 PM #18

Archived author: MishaParem • Posted: 2020-05-11T20:14:24.413000+00:00
Original source

sure

rektbyfaith
Administrator
0
05-11-2020, 08:14 PM
#19
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;
rektbyfaith
05-11-2020, 08:14 PM #19

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;

rektbyfaith
Administrator
0
05-11-2020, 08:15 PM
#20
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*/)
```
rektbyfaith
05-11-2020, 08:15 PM #20

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*/)
```

Pages (4): Previous 1 2 3 4 Next
Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)