Skip to content

Commit

Permalink
Bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
user-grinch committed Nov 6, 2023
1 parent acf5622 commit e99bea8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/opcodemgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ static RTN_TYPE RUNTIME_API ImGuiCheckbox(RUNTIME_CONTEXT ctx) {
};

bool clicked = data->GetData(buf, 0, state);
wUpdateCompareFlag(ctx, clicked ? data->GetData(buf, 1, state) : state);
wSetIntParam(ctx, clicked ? data->GetData(buf, 1, state) : state);
return RTN_CONTINUE;
}

Expand Down
2 changes: 1 addition & 1 deletion src/texturemgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ TextureInfo* TextureMgr::FindInfo(std::string &&path) {

bool TextureMgr::Exists(TextureInfo *pInfo) {
for (TextureInfo item : textureList) {
if (item == static_cast<const TextureInfo&>(*pInfo)) {
if (item.path == pInfo->path) {
return true;
}
}
Expand Down

0 comments on commit e99bea8

Please sign in to comment.