]> git.lizzy.rs Git - nothing.git/blobdiff - src/game/level/level_editor/rect_layer.c
Try to fix clang build
[nothing.git] / src / game / level / level_editor / rect_layer.c
index ab2fd14a2f49a0ac39e3a31c7c34755d07bbd881..778c324cf8f2f9fc9d4a1c069f103153f3ec941e 100644 (file)
@@ -926,7 +926,7 @@ RectLayer *chop_rect_layer(Memory *memory,
 
         String action_string = trim(chop_word(&line));
         if (action_string.count > 0) {
-            action.type = atoi(string_to_cstr(memory, action_string));
+            action.type = (ActionType)atol(string_to_cstr(memory, action_string));
             switch (action.type) {
             case ACTION_NONE: break;
             case ACTION_TOGGLE_GOAL: