--- file_not_specified_in_diff +++ file_not_specified_in_diff @@ -, +, @@ --- src/lua.cc +++ src/lua.cc @@ -574,7 +574,7 @@ int y = round_down(lua_tonumber(L, 2)); const char *dir = lua_tostring(L,3); const char *allowed = "wsen"; - char *found = strchr(allowed, dir[0]); + const char *found = strchr(allowed, dir[0]); if (found && found[0]) world::AddScramble(GridPos(x,y), enigma::Direction(found-allowed));