Skip to content

Fix nil vehicle controller and redundant function calls in deathmessages - #742

Open
iManGaaX wants to merge 1 commit into
multitheftauto:masterfrom
iManGaaX:patch-4
Open

Fix nil vehicle controller and redundant function calls in deathmessages#742
iManGaaX wants to merge 1 commit into
multitheftauto:masterfrom
iManGaaX:patch-4

Conversation

@iManGaaX

@iManGaaX iManGaaX commented Sep 2, 2026

Copy link
Copy Markdown
  • Fixed Nil Controller Error: Handled cases where getVehicleController(killer) returns nil when killed by an unoccupied vehicle.
  • Fixed Redundant Function Call: Replaced second getBodyPartName(bodypart) execution with the already stored bodypartName variable.
  • Added RGB Color Fallback: Added fallback values for getColorFromString in case the color setting string is invalid.

@iManGaaX iManGaaX changed the title Fix nil vehicle controller and redundant function calls in death messages Fix nil vehicle controller and redundant function calls in deathmessages Sep 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant