static */
| 49 | } |
| 50 | |
| 51 | /* static */ ObjectType ScriptObjectType::ResolveNewGRFID(SQInteger grfid, SQInteger grf_local_id) |
| 52 | { |
| 53 | EnforcePrecondition(INVALID_OBJECT_TYPE, IsInsideBS(grf_local_id, 0x00, NUM_OBJECTS_PER_GRF)); |
| 54 | |
| 55 | grfid = std::byteswap(GB(grfid, 0, 32)); // Match people's expectations. |
| 56 | return _object_mngr.GetID(grf_local_id, grfid); |
| 57 | } |
nothing calls this directly
no test coverage detected