diff options
| author | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2022-02-22 22:32:03 +0700 |
|---|---|---|
| committer | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2022-02-22 22:32:03 +0700 |
| commit | bb66a2a3e6ff47476e48caa1c51a3eb06a1cc0dc (patch) | |
| tree | 0edfc5f3feb8aa382f5467567a1c6552d35680fe /src/GameInitDispose.cpp | |
| parent | 62448e16340803ff8d2f8a73cacb90ccaf84f9e5 (diff) | |
| download | blackshades-bb66a2a3e6ff47476e48caa1c51a3eb06a1cc0dc.tar.gz | |
Make sure NPC is only initialized once
This fixes leaked weapons introduced by 92367ddf025c
("Simplify NPC spawning").
Diffstat (limited to 'src/GameInitDispose.cpp')
| -rw-r--r-- | src/GameInitDispose.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/GameInitDispose.cpp b/src/GameInitDispose.cpp index 83435fb..4182c24 100644 --- a/src/GameInitDispose.cpp +++ b/src/GameInitDispose.cpp @@ -309,9 +309,9 @@ void initGame(Game* game) auto& vip = game->person[game->numpeople = 1]; vip.type = viptype; vip.whichgun = nogun; - vip.aiming = 0; + vip.aiming = false; vip.killtarget = -1; - vip.existing = 1; + vip.existing = true; vip.playerrotation = 0; vip.whichcostume = vipcostume; |
