Some quick additions of sanity checks for pointers and variables

This commit is contained in:
Noudess
2019-11-07 09:31:50 -05:00
parent a7bcc12eb6
commit f012d13f0c
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -4365,7 +4365,7 @@ void Client::Handle_OP_ClientUpdate(const EQApplicationPacket *app) {
/* Boat handling */
if (ppu->spawn_id != GetID()) {
/* If player is controlling boat */
if (ppu->spawn_id == controlling_boat_id) {
if (ppu->spawn_id && ppu->spawn_id == controlling_boat_id) {
Mob *boat = entity_list.GetMob(controlling_boat_id);
if (boat == 0) {
controlling_boat_id = 0;