I did not know why "cg_leiEnhancement 1" caused the game to crash.
Before I started debugging I just ran through tr_particles.c and fixed a lot of warnings. This also fixed my problem.
I think the critical part was:
```
-int reallyactive;
+particle_t* reallyactive;
```
The diff makes it a bit hard but another change was:
```
else if (p->colortype = P_INDEXED)
```
to
```
else if (p->colortype == P_INDEXED)
```
and:
```
-vec3_t color;
+vec4_t color;
```
* A WIP particle system
* - Some more particle refactoring
- an attempt to fix things that went wrong
- trying to integrate fog onto particles (which is currently wrong)
- qpal.h committed (oops)
- Attempt to separate particle rendering from particle moving for future optimization/refactor