[DiscordArchive] <@!109652764488892416><@!595620700706832414> Am i right?
[DiscordArchive] <@!109652764488892416><@!595620700706832414> Am i right?
Archived author: Bogir • Posted: 2021-06-27T20:49:17.216000+00:00
Original source
<@!109652764488892416><@!595620700706832414> Am i right?
Archived author: Honey • Posted: 2021-06-27T20:49:40.406000+00:00
Original source
<< not good with c++
Archived author: Honey • Posted: 2021-06-27T20:50:20.236000+00:00
Original source
but the nesting seems to make the red squared part impossible to reach indeed, since !creature was checked before
Archived author: Shin • Posted: 2021-06-27T21:01:07.332000+00:00
Original source
<@!422489898105307158> yes, I guess it's because this code has been commented out:
Archived author: Shin • Posted: 2021-06-27T21:01:09.612000+00:00
Original source
```
/* FIXME: impossible without entry
if (lowguid)
creature = ObjectAccessor::GetCreature(*handler->GetSession()->GetPlayer(), MAKE_GUID(lowguid, HighGuid::Unit));
*/
```
Archived author: Shin • Posted: 2021-06-27T21:01:17.359000+00:00
Original source
otherwise it would have been reacheable
Archived author: Bogir • Posted: 2021-06-27T21:16:21.988000+00:00
Original source
second comparisson `if (!creature)` allways true. => `else` allways unreacheable
Archived author: Kitzunu • Posted: 2021-06-27T21:17:03.229000+00:00
Original source
Yea but that is because the code above is commented out
Archived author: Kitzunu • Posted: 2021-06-27T21:17:14.346000+00:00
Original source
if it wasnt, creature would be found
Archived author: Bogir • Posted: 2021-06-27T21:20:55.554000+00:00
Original source
```cpp
if (!creature)
{
if (!creature)
...
else
...
}
```
What do you mean "commented above"? What commented?