colyseus / colyseus-haxe

⚔ Colyseus Multiplayer SDK for Haxe

Home Page:https://docs.colyseus.io/getting-started/haxe-client/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Compilation error at Schema

serjek opened this issue · comments

haxe/haxe_libraries/colyseus/0.14.2/haxelib/src/io/colyseus/serializer/schema/Schema.hx:584: lines 584-590 : Cannot use Void as value

I believe it's missing return statement here:

Lambda.mapi(previousValue.items, function(index, item) {
  //here
  return deletes.push({
    op: cast OPERATION.DELETE,
      field: cast index,
      dynamicIndex: cast index,
      value: null,
      previousValue: item
    });
});

But I'm not sure. Adding a return fixes the compilation though but I can not yet tell if it works as expected.

Thanks @serjek, that's it! I'll push this