# Unable to use hot reload with ShooterGame

**URL:** <https://forums.unrealengine.com/t/unable-to-use-hot-reload-with-shootergame/324676>\
**Category:** Community & Industry Discussion\
**Tags:** shootergame, unreal-engine, question, hot-reload\
**Created:** [July 9, 2015, 7:30pm UTC](https://forums.unrealengine.com/t/unable-to-use-hot-reload-with-shootergame/324676 "2015-07-09T19:30:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ShirtyKezRat](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ShirtyKezRat](https://forums.unrealengine.com/u/ShirtyKezRat)\
**Post date:** [July 9, 2015, 7:30pm UTC](https://forums.unrealengine.com/t/unable-to-use-hot-reload-with-shootergame/324676/1 "2015-07-09T19:30:32Z")

</div>

I’m under the impression I cannot do hot reloads with shooter game. Is they’re a specific reason for this? Its seems like it doesn’t work when modifying class declarations, could this be because shooter game uses GENERATED\_UCLASS\_BODY?

---

<div class="post-metadata">

**Author:** ![ShirtyKezRat](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ShirtyKezRat](https://forums.unrealengine.com/u/ShirtyKezRat)\
**Post date:** [August 28, 2015, 9:08pm UTC](https://forums.unrealengine.com/t/unable-to-use-hot-reload-with-shootergame/324676/2 "2015-08-28T21:08:20Z")

</div>

Okay, just to be more specific on the issue:  
If I try to hot reload ShooterGame, the game crashes when I PIE after hot reloaded. It doesn’t happen after the Hot Reload but specifically when playing.  
The issue arises in the method FXAudio2SoundSource::Init(FWaveInstance\* InWaveInstance). The code does a check(AudioDevice) and fails because AudioDevice is set to NULL.  
Anyone know what this could be linked to? I’m using ShooterGame as a base for my game and not being able to use one of the best parts of UE4 as a programmer is really annoying!

---

<div class="post-metadata">

**Author:** ![ShirtyKezRat](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ShirtyKezRat](https://forums.unrealengine.com/u/ShirtyKezRat)\
**Post date:** [August 29, 2015, 10:31am UTC](https://forums.unrealengine.com/t/unable-to-use-hot-reload-with-shootergame/324676/3 "2015-08-29T10:31:40Z")

</div>

Okay, I’m going to have to debug this myself arn’t I…

---

<div class="post-metadata">

**Author:** ![ShirtyKezRat](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ShirtyKezRat](https://forums.unrealengine.com/u/ShirtyKezRat)\
**Post date:** [October 17, 2015, 2:34pm UTC](https://forums.unrealengine.com/t/unable-to-use-hot-reload-with-shootergame/324676/4 "2015-10-17T14:34:24Z")

</div>

Okay, have not found a solution to my problem yet, but it seems related to this:

> **[\[4.8.1\] Audio crash after C++ hot-reload](https://forums.unrealengine.com/questions/250972/481-audio-crash-after-c-hot-reload.html)**
>
> This is a bug which was introduced in the latest release (4.8) it worked fine up until now. NOTE: This only happens after a hot-reload of the C++ code When I use UGameplayStatics::PlaySoundAtLocation(this, FireSound, GetActorLocation()) ...
