Removed a lint error

This commit is contained in:
Linus_Probert 2018-03-15 17:00:11 +01:00
parent 07136c70f9
commit 2393608682
1 changed files with 1 additions and 2 deletions

View File

@ -97,9 +97,8 @@ l_map_set_current_room_modifier(lua_State *L)
Map *map = luaL_checkmap(L, 1); Map *map = luaL_checkmap(L, 1);
modifier = luaL_checkstring(L, 2); modifier = luaL_checkstring(L, 2);
Room *room;
if (strcmp(modifier, "WINDY") == 0) { if (strcmp(modifier, "WINDY") == 0) {
room = map->rooms[map->currentRoom.x][map->currentRoom.y]; Room *room = map->rooms[map->currentRoom.x][map->currentRoom.y];
room->modifier.type = RMOD_TYPE_WINDY; room->modifier.type = RMOD_TYPE_WINDY;
room->modifier.data.wind.direction = VECTOR2D_LEFT; room->modifier.data.wind.direction = VECTOR2D_LEFT;
} else { } else {