Skip to content

Commit

Permalink
Fix a printf format TriggerClass::Write_INI
Browse files Browse the repository at this point in the history
"Data" is a int, not a long int
  • Loading branch information
th-otto committed Mar 20, 2024
1 parent ffd4077 commit da0896d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tiberiandawn/trigger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1192,7 +1192,7 @@ void TriggerClass::Write_INI(CCINIClass& ini, bool refresh)
}

sprintf(buf,
"%s,%s,%ld,%s,%s,%d",
"%s,%s,%d,%s,%s,%d",
TriggerClass::Name_From_Event(trigger->Event),
TriggerClass::Name_From_Action(trigger->Action),
trigger->Data,
Expand Down

0 comments on commit da0896d

Please sign in to comment.