Skip to content

Commit

Permalink
check client has a character in SendOverallSeason
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinEady committed Apr 28, 2022
1 parent 5c969ed commit 578b48f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
7 changes: 6 additions & 1 deletion docs/docs.polserver.com/pol100/corechanges.xml
Expand Up @@ -2,9 +2,14 @@
<ESCRIPT>
<header>
<topic>Latest Core Changes</topic>
<datemodified>04-12-2022</datemodified>
<datemodified>04-29-2022</datemodified>
</header>
<version name="POL100.1.0">
<entry>
<date>04-29-2022</date>
<author>Kevin:</author>
<change type="Fixed">`SendOverallSeason` now checks that connected clients have a character.</change>
</entry>
<entry>
<date>04-12-2022</date>
<author>Kevin:</author>
Expand Down
4 changes: 3 additions & 1 deletion pol-core/doc/core-changes.txt
@@ -1,4 +1,6 @@
-- POL100.1.0 --
-- POL100.1.0 --
04-29-2022 Kevin:
Fixed: `SendOverallSeason` now checks that connected clients have a character.
04-12-2022 Kevin:
Added: Boolean property `client.disable_inactivity_timeout`.
If true, the client will not be disconnected due to inactivity.
Expand Down
2 changes: 1 addition & 1 deletion pol-core/pol/module/uomod.cpp
Expand Up @@ -5417,7 +5417,7 @@ BObjectImp* UOExecutorModule::mf_SendOverallSeason( /*season_id, playsound := 1*
itr != end; ++itr )
{
Network::Client* client = *itr;
if ( !client->chr->logged_in() || client->getversiondetail().major < 1 )
if ( !client->chr || !client->chr->logged_in() || client->getversiondetail().major < 1 )
continue;
msg.Send( client );
}
Expand Down

0 comments on commit 578b48f

Please sign in to comment.