Skip to content

Commit af22ab3

Browse files
committed
Merge pull request #482 from chief1983/fix/187_debugging
Enhance an Assert to help track down how issue 187 could happen
2 parents d6b0e9f + 870ad9e commit af22ab3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

code/network/multimsgs.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6035,7 +6035,10 @@ void process_post_sync_data_packet(ubyte *data, header *hinfo)
60356035
objp = multi_get_network_object(net_sig);
60366036

60376037
// make sure we found a ship
6038-
Assert((objp != NULL) && (objp->type == OBJ_SHIP));
6038+
Assertion(objp != NULL, "idx: %d, ship_count: %d, sinfo_index: %u, ts_index: %u, net_sig: %u",
6039+
idx, ship_count, sinfo_index, ts_index, net_sig);
6040+
Assertion(objp->type == OBJ_SHIP, "type: %d, idx: %d, ship_count: %d, sinfo_index: %u, ts_index: %u, net_sig: %u",
6041+
objp->type, idx, ship_count, sinfo_index, ts_index, net_sig);
60396042

60406043
// set the ship to be the right class
60416044
change_ship_type(objp->instance,(int)sinfo_index);

0 commit comments

Comments
 (0)