aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfusion32 <marcopuzziello@gmail.com>2025-12-12 15:26:45 -0300
committerfusion32 <marcopuzziello@gmail.com>2025-12-12 15:26:45 -0300
commit9f511989217dac3984e838549e33c47d7b16bacd (patch)
tree5d52aa1fcfb5341c4f77aa0592d5de3ba5cb4e79
parent3485791000c76fe0e8788759d033a1ce26294488 (diff)
downloadgame-9f511989217dac3984e838549e33c47d7b16bacd.tar.gz
game-9f511989217dac3984e838549e33c47d7b16bacd.zip
fix a problem with saving murder timestamps in player files
-rw-r--r--src/crplayer.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crplayer.cc b/src/crplayer.cc
index a082083..4934966 100644
--- a/src/crplayer.cc
+++ b/src/crplayer.cc
@@ -2557,7 +2557,7 @@ void SavePlayerData(TPlayerData *Slot){
for(int i = 0; i < NARRAY(Slot->MurderTimestamps); i += 1){
// NOTE(fusion): Save murder timestamps for up to a month.
if((Now - Slot->MurderTimestamps[i]) < (30 * 24 * 60 * 60)){
- if(FirstMurder){
+ if(!FirstMurder){
Script.writeText(",");
}
Script.writeNumber(Slot->MurderTimestamps[i]);