Skip to content

Commit

Permalink
fix capital letters in file extension crashing map viewer (fixes #87)
Browse files Browse the repository at this point in the history
  • Loading branch information
wootguy committed Apr 23, 2024
1 parent 60d5067 commit c0b1eee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bsp/Bsp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ Bsp::Bsp() {

Bsp::Bsp(std::string fpath)
{
if (fpath.size() < 4 || fpath.rfind(".bsp") != fpath.size() - 4) {
if (fpath.size() < 4 || toLowerCase(fpath).rfind(".bsp") != fpath.size() - 4) {
fpath = fpath + ".bsp";
}
this->path = fpath;
Expand Down

0 comments on commit c0b1eee

Please sign in to comment.