Expected Type Int Found Null Error When Calling A Function That Sets A Class Variable

Expected Type Int Found Null Error When Calling A Function That Sets A Class Variable