Skip to content

Commit 395dcc2

Browse files
fix: Tech Heresy detection var in wrong scope (Adeptus-Dominus#466)
1 parent 976c6a2 commit 395dcc2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/scr_specialist_point_handler/scr_specialist_point_handler.gml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ function SpecialistPointHandler() constructor{
6565
};
6666
healing_and_point_use();
6767

68-
var _noticed_heresy=false, at_forge=0;
68+
var at_forge=0;
6969
tech_locations=[]
7070
var _cur_tech;
7171
total_techs = array_length(techs);
@@ -199,6 +199,7 @@ function SpecialistPointHandler() constructor{
199199
try{
200200
var tech_test, charisma_test, piety_test, _met_non_heretic, heretics_persuade_chances;
201201
var _tester = global.character_tester;
202+
var _noticed_heresy = false; // should this be in the for loop?
202203
if (array_length(heretics)>0 && obj_controller.turn>75){
203204
var _heretic_location, _same_location, _current_heretic, _current_tech;
204205
//iterate through tech heretics;

0 commit comments

Comments
 (0)