Skip to content

Commit

Permalink
fix a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
4z0t committed Dec 5, 2024
1 parent ecd3723 commit 4c427f7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion include/global.h
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,8 @@ struct runtime_error : exception
{
runtime_error_ctor(this, &s);
}

private:
// string str; erases message because of dtor!
char str[0x1C];
};
void __stdcall _CXXThrowException(void *except, void *throwInfo) asm("0x00A89950");
2 changes: 1 addition & 1 deletion section/EntityGetFootprint.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ SHARED void *__thiscall Moho__Entity__GetFootprint(Entity *entity)
void *bp = GetField<void *>(entity, 0x6C);
if (!bp)
{
runtime_error err(string{"Attempt to get footprint on nameless entity"});
runtime_error err{string{"Attempt to get footprint on nameless entity"}};
_CXXThrowException(&err, (void *)0xEC210C);
}
void *sstiData = Offset<void *>(entity, 0x78);
Expand Down

0 comments on commit 4c427f7

Please sign in to comment.