Skip to content

Commit 97d96d0

Browse files
committed
thcrap_tasofro: th145: ignore case in spellcard csv path
th145 (or at least some version of it) use spellCard, which requires a case-insensitive string comparison
1 parent 5f00e65 commit 97d96d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

thcrap_tasofro/src/spellcards_generator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ json_t* spell_player_generator(const jsonvfs_map& in_data, std::string_view out_
121121
if (out_fn_ptr == NULL) {
122122
return NULL;
123123
}
124-
if (strncmp(out_fn_ptr, "/data/csv/spellcard/", strlen("/data/csv/spellcard/")) == 0) {
124+
if (strnicmp(out_fn_ptr, "/data/csv/spellcard/", strlen("/data/csv/spellcard/")) == 0) {
125125
out_fn_ptr += strlen("/data/csv/spellcard/");
126126
}
127127
else {

0 commit comments

Comments
 (0)