diff options
author | withmorten <morten.with@gmail.com> | 2021-01-31 02:08:42 +0100 |
---|---|---|
committer | withmorten <morten.with@gmail.com> | 2021-01-31 02:08:42 +0100 |
commit | da378077f78a1773a6c4bf5a768c6ebb5a7c75b5 (patch) | |
tree | 348c13d4b3cac0d04d97c1830b6e10f4dd19bafa /src/render | |
parent | Merge branch 'master' of https://github.com/GTAmodding/re3 (diff) | |
download | re3-da378077f78a1773a6c4bf5a768c6ebb5a7c75b5.tar re3-da378077f78a1773a6c4bf5a768c6ebb5a7c75b5.tar.gz re3-da378077f78a1773a6c4bf5a768c6ebb5a7c75b5.tar.bz2 re3-da378077f78a1773a6c4bf5a768c6ebb5a7c75b5.tar.lz re3-da378077f78a1773a6c4bf5a768c6ebb5a7c75b5.tar.xz re3-da378077f78a1773a6c4bf5a768c6ebb5a7c75b5.tar.zst re3-da378077f78a1773a6c4bf5a768c6ebb5a7c75b5.zip |
Diffstat (limited to 'src/render')
-rw-r--r-- | src/render/Renderer.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp index d41f27e3..2c224677 100644 --- a/src/render/Renderer.cpp +++ b/src/render/Renderer.cpp @@ -1396,6 +1396,10 @@ CRenderer::ScanSectorPoly(RwV2d *poly, int32 numVertices, void (*scanfunc)(CPtrL void CRenderer::InsertEntityIntoList(CEntity *ent) { +#ifdef FIX_BUGS + if (!ent->m_rwObject) return; +#endif + #ifdef NEW_RENDERER // TODO: there are more flags being checked here if(gbNewRenderer && (ent->IsVehicle() || ent->IsPed())) |