multitheftauto / mtasa-blue

Multi Theft Auto is a game engine that incorporates an extendable network play element into a proprietary commercial single-player game.
https://multitheftauto.com
GNU General Public License v3.0
1.42k stars 437 forks source link

Assertion failed! CModelInfoSA.cpp #3192

Closed Xenius97 closed 1 year ago

Xenius97 commented 1 year ago

Describe the bug

After using engineRequestTXD and engineSetModelTXDID i get randomly this error and game crashing (disconnect or quit game)

image

Steps to reproduce

Use linked resource from https://github.com/multitheftauto/mtasa-blue/issues/3153

Version

22195

Additional context

No response

Relevant log output

No response

Security Policy

Xenius97 commented 1 year ago

@TheNormalnij https://github.com/multitheftauto/mtasa-blue/blob/1f7937bf9df9d80d88551624f24f3e0a3d55d091/Client/game_sa/CModelInfoSA.cpp#L817

botder commented 1 year ago

Introduced in commit 3e9a3735a8022a0acabaa3041c8a3f8d91e547b7. @TheNormalnij @Pirulax

Pirulax commented 1 year ago

If there's no model info, there's nothing to reset, so I think just adding an if (mi) guard would be enough