Skip to content
Snippets Groups Projects
Commit 52449bdb authored by James R.'s avatar James R.
Browse files

srb2::Mobj: fix state call on player

parent 3c1e1308
No related branches found
No related tags found
No related merge requests found
......@@ -157,7 +157,7 @@ struct Mobj : mobj_t
statenum_t num() const { return static_cast<statenum_t>(static_cast<const state_t*>(this) - states); }
};
void state(statenum_t state) { P_SetMobjState(this, state); }
void state(statenum_t state) { (player ? P_SetPlayerMobjState : P_SetMobjState)(this, state); }
const State* state() const { return static_cast<const State*>(mobj_t::state); }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment