Fix crash (#412)

Co-authored-by: MegaMech <7255464+MegaMech@users.noreply.github.com>
This commit is contained in:
MegaMech
2025-07-03 06:40:34 -06:00
committed by GitHub
parent 23b6478ce6
commit 67090b39a7
+2 -2
View File
@@ -3254,11 +3254,11 @@ void verify_probability_table(char* str, const ItemProbabilities* probs, int16_t
#ifndef _DEBUG
return;
#endif
u8 itemProbabilities[ITEM_MAX - 1];
u8 itemProbabilities[ITEM_MAX];
getProbabilityArray(probs, itemProbabilities);
size_t count = 0;
for (size_t i = 0; i < ITEM_MAX - 1; i++) {
for (size_t i = 0; i < ITEM_MAX; i++) {
//printf("prob %d ", itemProbabilities[i]);
count += itemProbabilities[i];
}