diff --git a/src/Platform_Web.c b/src/Platform_Web.c index e5e1ca413..60e0512c6 100644 --- a/src/Platform_Web.c +++ b/src/Platform_Web.c @@ -428,8 +428,7 @@ cc_bool Platform_DescribeError(cc_result res, cc_string* dst) { } EMSCRIPTEN_KEEPALIVE void Platform_LogError(const char* msg) { - /* no point showing more than 128 characters in chat */ - cc_string str = String_FromRaw(msg, 128); + cc_string str = String_FromReadonly(msg); Logger_WarnFunc(&str); } diff --git a/src/World.h b/src/World.h index 94ef89c60..75f7d3116 100644 --- a/src/World.h +++ b/src/World.h @@ -72,7 +72,7 @@ static CC_INLINE BlockID World_GetBlock(int x, int y, int z) { return (BlockID)((World.Blocks[i] | (World.Blocks2[i] << 8)) & World.IDMask); } #else -#define World_GetBlock(x, y, z) World_Blocks[World_Pack(x, y, z)] +#define World_GetBlock(x, y, z) World.Blocks[World_Pack(x, y, z)] #endif /* If Y is above the map, returns BLOCK_AIR. */