diff options
Diffstat (limited to 'src/char/pincode.c')
-rw-r--r-- | src/char/pincode.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/char/pincode.c b/src/char/pincode.c index 325a705a5..b8b30a1b8 100644 --- a/src/char/pincode.c +++ b/src/char/pincode.c @@ -126,10 +126,11 @@ void pincode_notifyLoginPinError(int account_id) { } void pincode_decrypt(unsigned int userSeed, char* pin) { - int i, pos; + int i; char tab[10] = {0,1,2,3,4,5,6,7,8,9}; - for( i = 1; i < 10; i++ ){ + for (i = 1; i < 10; i++) { + int pos; userSeed = pincode->baseSeed + userSeed * pincode->multiplier; pos = userSeed % (i + 1); if( i != pos ){ |