Remove pointless cast

Before this change, API.vp[5] was cast to a pilot pointer and then cast
to a char pointer immediately afterwards. Nothing gets done to API.vp[5]
while it’s a pilot pointer, so we can remove the pilot pointer cast
without changing any behavior.
This commit is contained in:
Jason Yundt 2024-08-17 15:06:36 -04:00
parent b25977c3d7
commit 72852bce3d

View File

@ -286,7 +286,7 @@ DLLTracker_id = (char *)API.vp[1];
DLLGame_is_master_tracker_game = API.vp[2];
DLLGame_mode = *API.vp[3];
// DLLCurrent_pilot = (pilot *)API.vp[4];
DLLLocalD3Dir = (char *)(pilot *)API.vp[5];
DLLLocalD3Dir = (char *)API.vp[5];
DLLMultiGameStarting = (int *)API.vp[6];
DLLMTPilotinfo = (vmt_descent3_struct *)API.vp[7];
DLLNum_network_games_known = API.vp[8];