Fixes #4241
Fixes #4241 (Using a weapon model id for engineRequestModel and then replacing it crashes the game)
Before you go ahead and create a pull request, please make sure:
- [x ] your code follows the coding guidelines
- [ x] your commit messages are informative ("update file.cpp" is unhelpful. "fix missing model in getVehicleNameFromModel" is helpful)
If your work is incomplete, do not prefix your pull request with "WIP", instead create a draft pull request: https://github.blog/2019-02-14-introducing-draft-pull-requests/
Thank you!
This is not a proper fix, just a workaround. It doesn't fix the crash, it only blocks the ability to use the weapon ID
@ColombuxMaximus Thanks for the PR. Do you intend to fix this properly?
@ColombuxMaximus Thanks for the PR. Do you intend to fix this properly?
I'll try later, let's close this PR