MafiaHub / MafiaMP

Multiplayer experience for Mafia: Definitive Edition
https://mafiahub.dev
Other
39 stars 5 forks source link

Fix Revert "Vehicle DB improvements (#44)" #70

Closed Deewarz closed 7 months ago

Deewarz commented 7 months ago

We use C_WeakPtr here:

https://github.com/MafiaHub/MafiaMP/blob/d0d3017cae30dd854e1e50a7f0ed0ee3c560c899/code/client/src/game/streaming/entity_factory.cpp#L20

https://github.com/MafiaHub/MafiaMP/blob/d0d3017cae30dd854e1e50a7f0ed0ee3c560c899/code/client/src/game/streaming/entity_factory.cpp#L92

Probably the first one cause the crash. (when two players try to connect to the server)


The crash is fixed by changing the properties of C_WeakPtr back to public.

Probably, because the game uses C_WeakPtr under the hood.