Godot Version
4.5.1
Question
Why is the engine treating Globals.research_count as a bool with it’s hard typed as an int. it’s making it so my game won’t even run any more, since it just spits out an error about it.
Main code:
if fufilled_dependents >= dependents_count & Globals.research_count <= 9:
Globals.research_count += 1
show()
Globals file:
var research_count: int = 0
for context I moved this variable into a separate script I use for global variables in my game and now it’s not at all working and I can’t figure out why it’s working like this. please explain