![]() |
#11 |
PosChengband Maintainer
Join Date: Jan 2008
Posts: 702
![]() |
Code:
#include <stdlib.h> struct foo_s { int foo[5]; int bar; }; typedef struct foo_s foo_t; int main() { foo_t foo; foo.foo[5] = 1; return 0; } Code:
p_ptr->innate_attacks[MAX_INNATE_ATTACKS].blows = 1; Code:
struct player_type { ... innate_attack_t innate_attacks[MAX_INNATE_ATTACKS]; .... }; |
![]() |
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[3.4-RC] Macro problem | PowerWyrm | Vanilla | 3 | August 1, 2012 23:47 |
Tunneling macro help... | Skitzman69 | Vanilla | 3 | April 30, 2012 06:39 |
Macro help | Raggy | Vanilla | 11 | June 19, 2011 08:05 |
can't use @a1 inscription/macro | fbas | Vanilla | 4 | November 18, 2010 20:05 |
Macro difficulty | stabbo | Vanilla | 16 | November 18, 2010 08:16 |