mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-16 05:13:58 -07:00
Fix 3af1fc64d2 - incorrect texture path on Windows.
sizeof(const char*) returns the pointer size and not the string size, and 'texture:' happend to be 8 characters long, which is the same as a 64-bit pointer but not a 32-bit pointer. Reported by: Stan Differential Revision: https://code.wildfiregames.com/D3947 This was SVN commit r25415.
This commit is contained in:
parent
b4d11bda89
commit
5fbdbaa3bc
1 changed files with 2 additions and 2 deletions
|
|
@ -74,8 +74,8 @@ bool CGUIMouseEventMask::IsMouseOver(const CVector2D& mousePos, const CRect& obj
|
|||
class CGUIMouseEventMaskTexture final : public CGUIMouseEventMask::Impl
|
||||
{
|
||||
public:
|
||||
static constexpr const char* identifier = "texture:";
|
||||
static constexpr size_t specOffset = sizeof(identifier);
|
||||
static constexpr std::string_view identifier = "texture:";
|
||||
static constexpr size_t specOffset = identifier.size();
|
||||
|
||||
static std::unique_ptr<CGUIMouseEventMaskTexture> Create(const std::string& spec)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue