diff options
| author | Mosder <xmosder12@gmail.com> | 2026-07-31 20:59:31 +0200 |
|---|---|---|
| committer | Mosder <xmosder12@gmail.com> | 2026-07-31 20:59:31 +0200 |
| commit | ad5eb982de97d982bc808ece89903d1113ab9917 (patch) | |
| tree | acbb6865248f14d4faa16759943cefcceb94667b /analyzer/analyzer.c | |
| parent | 4624152ac63ca3b4cbba0998d54fb0da84daef8c (diff) | |
refactor: apparently when you add , after last item in struct initalization it doesn't get formatted like shit by clang. crazy shit
Diffstat (limited to 'analyzer/analyzer.c')
| -rw-r--r-- | analyzer/analyzer.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/analyzer/analyzer.c b/analyzer/analyzer.c index b3468d6..194ac5c 100644 --- a/analyzer/analyzer.c +++ b/analyzer/analyzer.c @@ -25,14 +25,12 @@ void cleanup_str_pointer(void *str_pointer) { // initalize new total rewards TotalRewards new_total_rewards() { HashMap *saturations = hashmap_new(sizeof(const char *), sizeof(int), hash_str, compare_strs, NULL, NULL); - // clang-format off TotalRewards rewards = { .exp = 0, .gold = 0, .psycho = 0, - .saturations = saturations + .saturations = saturations, }; - // clang-format on for (size_t i = 0; i < MAX_ITEM_TYPE; i++) rewards.items[i] = array_new(sizeof(char **), 16, cleanup_str_pointer); return rewards; |
