ddnet/src
bors[bot] 1ca4220adf
Merge #5222
5222: Fix crash because of hooks on non ddnet server r=def- a=C0D3D3V

Reported by `@Ясно` Понятно 
on non ddnet server, this code gets run to detect strong-weak ids:
6a5673aa04/src/game/client/gameclient.cpp (L2540-L2541)
which causes a crash because this CCharacterCore is not bound to a gameworld 
the check for m_pWorld failed because m_pWorld is fill of random data
ac15943e85/src/game/gamecore.cpp (L625)
So I would also like to initialize it with a nullpointer 

## Checklist

- [x] Tested the change ingame
- [ ] Provided screenshots if it is a visual change
- [ ] Tested in combination with possibly related configuration options
- [ ] Written a unit test if it works standalone, system.c especially
- [x] Considered possible null pointers and out of bounds array indexing
- [x] Changed no physics that affect existing maps
- [x] Tested the change with [ASan+UBSan or valgrind's memcheck](https://github.com/ddnet/ddnet/#using-addresssanitizer--undefinedbehavioursanitizer-or-valgrinds-memcheck) (optional)


Co-authored-by: c0d3d3v <c0d3d3v@mag-keinen-spam.de>
2022-05-25 15:51:43 +00:00
..
android Add Android build scripts 2021-08-24 12:18:20 +02:00
antibot Merge pull request #3961 from fokkonaut/pr-antibot 2021-12-19 19:33:56 +01:00
base Do not clip players with hook in the field of view 2022-05-22 21:59:48 +02:00
engine Merge #5194 2022-05-25 14:46:16 +00:00
game Merge #5222 2022-05-25 15:51:43 +00:00
macos Make Objective-C file Objective-C++ 2022-05-19 11:16:03 +02:00
mastersrv Make mastersrv compile with Rust 1.48.0 2022-05-20 16:29:01 +02:00
steam Add modernize-deprecated-headers 2022-02-15 00:22:52 +01:00
test Record player switch in teehistorian 2022-05-21 21:37:17 +02:00
tools Add HTTP masterserver registering and HTTP masterserver 2022-05-20 08:58:32 +02:00
twping Add HTTP masterserver registering and HTTP masterserver 2022-05-20 08:58:32 +02:00