]> git.lizzy.rs Git - nothing.git/commitdiff
Try to fix clang build
authorrexim <reximkut@gmail.com>
Sat, 4 Jan 2020 21:13:45 +0000 (04:13 +0700)
committerrexim <reximkut@gmail.com>
Sat, 4 Jan 2020 21:13:45 +0000 (04:13 +0700)
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: