fix "Selected Block" text display #20
No reviewers
Labels
No Label
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: TheZone/ScuffedMinecraft#20
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "fix-selected-block-text"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
this fixes a bug in the
"Selected Block"
display where instead of the expectedchar*
thestd::string
was passed toImGui::Text
also changes
Tall Grass Bot
toTall Grass Bottom
since that is working correctly nowthe reason this could still work in some situations (for me in release but not debug) is that
std::string
uses "small string optimization" where small strings are stored in the object itself instead of being allocated elsewhere. if the layout ofstd::string
happens to align in such a way that it could be interpreted like achar[]
it will work, but only for small strings