forked from mirrors/0ad
05f31300a1
Those bugs stood out to me as I was experimenting with migrating petra to ES6 classes. Since this give the code stronger typing, those kind of errors stand out immediately. For example, autoResearch is a function, thus referring to it by name will always return the same result. In other cases the referenced variables simply don't exist.