games/quake2max: specify return type of Mod_GetTris() function correctly
It iterates over a counter (local variable) and returns its value, not
the address. While here, staticize it as it is not called elsewhere.
Reported by: pkg-fallout (clang 15)