Fixed a compile-time warning in MSVC.
Sorted the generated param count.
Fixed 1.7.2 login packet reading.

Fixes #1317.