update rights integer via struct

This commit is contained in:
wish
2022-10-30 23:18:53 +11:00
parent 676bb736bf
commit 4390617ccf
3 changed files with 20 additions and 9 deletions

View File

@@ -213,7 +213,7 @@ func logoutPlayer(s *Session) {
timePlayed += sessionTime
var rpGained int
if s.FindCourse("Netcafe").Value != 0 {
if s.FindCourse("Netcafe").ID != 0 {
rpGained = timePlayed / 900
timePlayed = timePlayed % 900
} else {