Fix thrown/missile weapon crash
This commit is contained in:
@@ -1046,8 +1046,10 @@ void handle_target_mode(eGameMode target_mode, int range, eSpell spell) {
|
|||||||
// Lock on to enemies in range:
|
// Lock on to enemies in range:
|
||||||
if(has_feature_flag("target-lock", "V1") && get_bool_pref("TargetLock", true)){
|
if(has_feature_flag("target-lock", "V1") && get_bool_pref("TargetLock", true)){
|
||||||
// Skip this for spells that don't target enemies
|
// Skip this for spells that don't target enemies
|
||||||
cSpell spell_info = *spell;
|
if(spell != eSpell::NONE){
|
||||||
if(!spell_info.target_lock) return;
|
cSpell spell_info = *spell;
|
||||||
|
if(!spell_info.target_lock) return;
|
||||||
|
}
|
||||||
|
|
||||||
location loc = univ.current_pc().combat_pos;
|
location loc = univ.current_pc().combat_pos;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user